[Rails] 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
--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home