femto Zheng
2012-Sep-03 05:49 UTC
How to setting config.timezone in non-Rails application?
> > Hello all, I''m developing a sinatra application and loads ActiveRecord in,the main server is in rails, the many clients is written in Sinatra, now I need to sync job from server to client where saving the related datetime seems a problem, it seems rails has done some handling about timezone, when converting to yaml to send, it just "2012-08-29 16:00:00.000000000Z" (seems to convert to UTC and just have a Z in it to denote it), and then in client, I need to de_yaml it, and saves it, it seems messy, and do client has a way to set a TimeZone? it seems in ThreadLocal Time.zone= fits this description, but do anybody know how the param pattern looks like? -- http://hi.baidu.com/femto http://www.aisiming.com/ http://maptu.heroku.com/ -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.