This is what I do.  To get around figuring out what daylight timezone
I'm in, I just save everything at UTC.  When I read it back out for
display purposes, I then convert to the current local timezone (PST or
PDT).  If I had people reading from more then one timezone, I would be
dependent on the local machine to tell me what timezone they are in.
But that is not 100% reliable either.


Weekly.filter( :user_id     => request[:u],
               :week_ending => request[:w] ).
       update( :locked        => true,
               :locked_at     => Time.now.utc,
               :locked_by_id  => session[:id],
               :updated_at    => Time.now.utc )
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to