This project is archived and is in readonly mode.

#1663 ✓wontfix
Marcello Nuccio

TemplateRunner does not properly set time_zone in config/environment.rb

Reported by Marcello Nuccio | December 29th, 2008 @ 01:58 PM | in 2.x

Given a template.rb:

environment "config.time_zone = 'Rome'"

rails newapp -m template.rb

does generate a wrong config/environment.rb because time_zone is assigned twice.

With the attached patch the default value is overridden.

Comments and changes to this ticket

  • Pratik

    Pratik March 7th, 2009 @ 11:46 AM

    • Assigned user set to “Pratik”
  • Pratik

    Pratik March 7th, 2009 @ 11:51 AM

    • State changed from “new” to “wontfix”

    The patch feels too complex to me. I think we should just add a new method called "timezone" to the template, which would just replace the existing entry in environment.rb

    Will reopen once we have a new patch.

    Thanks !

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>

People watching this ticket