Hello all,
I need to know the local time for users of a global system.
Here's the scenario: My server (PDT time) hosts commerce for companies
around the world. It's fair to assume that those companies' customers are all
local to that company. With each transaction I get the current time, and
store as UTC/GMT. But when I want to show the time back to the user, I want
to show in *his* local time.
So, I'd like a way to "pretend" I'm in a particular time zone, which I would
get from the appropriate company record, and which I'd then use to get the
local time from UTC. But, I'm not seeing in the docs how to get anything
other than the server's own system time. What I don't want to have to do is
store my own offset to, say, GMT, because I don't want to worry about the ins
and outs of daylight savings times, etc.
Any thoughts?
Thanks,
Bill Borg