HI Liam,

I'd need a bit more info (rails version, config.time_zone setting,
store opening time column type, and exactly what you're doing when you
"refresh the form") to determine whether this is a framework issue or
an application design issue.

Feel free to contact me directly if you like.

Geoff

On Sep 7, 12:30 am, Liam Morley <[EMAIL PROTECTED]> wrote:
> I'm running into an issue where I'd like to use timezones in my
> application, but I'd also like to use times in places where timezone
> is not applicable. For example, I have a Store model, and I need to
> track what time of day the store opens. I'm using time_select to edit
> this field in my form, and when I submit the form with 0 hours, it
> goes in the db as 05:00:00 (I'm in EST). Then when I refresh the form,
> it reads this as 05:00:00, and so the displayed number for hours is
> always 5 more than I entered. Seems to me that the translation to/from
> utc is only occurring in one direction.
>
> I'm posting this here on the advice of bitsweat from irc. If anybody
> wants more information or a pastie of sorts, let me know.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to