Great script. I have one issue though. My server
hosting company has the system clock set to GMT.
This means that all default dates and alarms are going
to follow GMT. I did a quick run through the code and
saw that the date function is called in a lot of places
with the native call. Is there a way to be able to set
the timezone? If there is none I would be more than
happy to implement something like that, should you tell
me the best way to do it. Thanks.
Logged In: YES
user_id=204919
Dates are called in many many places throughout XRMS, and
are often set by the database directly.
Thinking about it quickly, I'm not sure that there is a good
way to change this behavior. I suppose that it might be
possible just for the activities subsystem to utilize a
strtotime function to show the default time in localtime,
but this would still not affect when the 'date' and 'time'
were considered overdue.
I think that this is really a problem with your hosting
provider, and not XRMS, although I am certainly open to
further discussion on the issue.
Regards,
- Brian
Logged In: YES
user_id=578132
I agree that this would be a wonderful addition. My users are
located in multiple time zones, and it would be nice if they could
use the system using 'local' time. But this is a pretty involved
change that I won't get to in the near future. Perhaps someone
else will pick it up as a todo.
As for how to implement, having it not change the absolute date
and time of events is exactly what is wanted. It just needs to be
translating all dates and times into local time. So an US eastern
server that has an activity datetime of jan 3 at 1 am and a current
datetime of Jan 5 at 4pm would display to a western user as an
activity on Jan 2 at 10pm with a current datetime of Jan 5 at 1
pm.
-Beth