search for: jstz

Displaying 1 result from an estimated 1 matches for "jstz".

Did you mean: jste
2011 Jul 13
14
Using timezone javascript to set Time.zone
I''ve got a javascript that provides me with the timezone for the client. I want to use this to set Time.zone so that all my times stored in the database are displayed in the timezone for the client. So really simplistically var timezone = jstz.determine_timezone().timezone Time.zone = timezone.olson_tz obviously this can''t be done. I''ve taken a look on the web and can only find ''solutions'' over two years old and as ROR moves so fast I thought someone may know of a better solution. So can anyone sugges...