On Wed, Sep 10, 2008 at 5:41 PM, Sunny Bogawat
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:> In my application I have to correct the time stamp on event
> discussion posts. Perhaps they are not observing DST? In any case, they
> are slow by one hour.
If you just want to add one hour to the time regardless of timezone,
the simplest thing that would work is:
$ ./script/console
Loading development environment.>> Time.now
=> Thu Sep 11 13:45:29 +1000 2008>> _ + 1.hour
=> Thu Sep 11 14:45:29 +1000 2008
--
http://lindsaar.net/
Rails, RSpec and Life blog....
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---