Forum: Ruby changing timezones

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Cb33b32bd5d675db7be148542976e510?d=identicon&s=25 Sam Joseph (Guest)
on 2007-06-06 21:25
(Received via mailing list)

Does anyone know how I can manipulate the timezone in ruby? I know that
I get a date from unix seconds like, but how can I get
something like, time_zone)? At the moment appears
to pull in the environment setting for timezone, which I could reset,
but that is not ideal ...

Many thanks in advance.
5acffb3fde70f28b9eab13eb78a25e63?d=identicon&s=25 Pau Garcia i Quiles (Guest)
on 2007-06-06 21:42
(Received via mailing list)

TzInfo is your friend:

Pau Garcia i Quiles
(Due to the amount of work, I usually need 10 days to answer)

Quoting Sam Joseph <>:
This topic is locked and can not be replied to.