Time. New uses the default system timezone when no one is given, so u say that you want 9:30 of your systems timezone in GMT, which is probably 8:30 GMT, depending on your local time zone.
You have to add the corresponding parameter to Time. New. Take a look at its documentation.
--
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 rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/KbjGqEvgFW0J.
For more options, visit https://groups.google.com/groups/opt_out.
[SOLVED] Time.zone.local(2012, 12, 3, 9, 30, 0) inside the TIme.use_zone did it ...1.9.3p194 :011 > Time.use_zone("Europe/London"){ Time.zone.local(2012, 12, 3, 9, 30, 0) }=> Mon, 03 Dec 2012 09:30:00 GMT +00:00
1.9.3p194 :012 > Time.use_zone("Europe/Paris"){ Time.zone.local(2012, 12, 3, 9, 30, 0) }=> Mon, 03 Dec 2012 09:30:00 CET +01:00
1.9.3p194 :013 > Time.use_zone("Asia/Singapore"){ Time.zone.local(2012, 12, 3, 9, 30, 0) }=> Mon, 03 Dec 2012 09:30:00 SGT +08:00