| Issue 1469: | Set Custom TimeZone | |
| 1 person starred this issue and may be notified of changes. | Back to list |
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
Status:
Invalid
|
|
| ► Sign in to add a comment |