My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 1469: Set Custom TimeZone
1 person starred this issue and may be notified of changes. Back to list
Status:  Invalid
Owner:  ----
Closed:  Aug 2013


Sign in to add a comment
 
Reported by infoman....@gmail.com, Jul 19, 2012
Hi,
I analyzed the script and I think it wouldn't be too hard to add custom timezone functionality if you replaced the Date() function with the following function:
function newDate(hourDiff,minuteDiff)
{
        var date = new Date();
        return new Date(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDay(), date.getUTCHours + hourDiff, date.getUTCMinutes() + minuteDiff, date.getUTCSeconds(), date.getUTCMilliseconds());
}
to all the places where you use the date.

If there is already a way of doing this please let me know.

By the way nice job on the script.

Thanks
Gjorge
Aug 18, 2013
Project Member #1 adamrs...@gmail.com
(No comment was entered for this change.)
Status: Invalid
Sign in to add a comment

Powered by Google Project Hosting