From c75934e392d024fc60b4e2a92c5eb7498d13a435 Mon Sep 17 00:00:00 2001 From: sepehrmm Date: Sat, 2 Jun 2012 14:06:03 +0430 Subject: [PATCH] Issue #1521574: Fixed incorrect local time bug. --- clock.js | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/clock.js b/clock.js index 854d1af..412009c 100755 --- a/clock.js +++ b/clock.js @@ -70,7 +70,7 @@ Drupal.behaviors.clockDisplay = { // JavaScript returns the time zone offset reversely signed as PHP, // therefore we calculate the difference in the absolute values by adding // the two numbers. - if (!Drupal.settings['local']) { + if (!settings['local']) { date = new Date(date.getTime() + (timeZone.offsetSeconds/60 + date.getTimezoneOffset())*60000); } -- 1.7.7.3