Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

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

#1663

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.

Reported by Marcello Nuccio · December 29th, 2008 @ 01:58 PM

State: wontfix
Milestone: 2.x
Assigned to: Pratik Pratik
Importance: none

Activity

  1. Pratik
    Pratik
    • Assigned user set to Pratik

    March 7th, 2009 @ 11:46 AM

  2. Pratik
    Pratik
    • 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 !

    March 7th, 2009 @ 11:51 AM