Index: src/date.js |
diff --git a/src/date.js b/src/date.js |
index 5e3f5c1a5ebd896fc9443e00c739058c68e0da3b..f3d4af244f9692c223ee5b467ace6c52e177d46f 100644 |
--- a/src/date.js |
+++ b/src/date.js |
@@ -42,19 +42,16 @@ function ThrowDateTypeError() { |
var timezone_cache_time = NAN; |
-var timezone_cache_timezone_offset = NAN; |
var timezone_cache_timezone; |
-function LocalTimezone(t, timezone_offset) { |
+function LocalTimezone(t) { |
if (NUMBER_IS_NAN(t)) return ""; |
- if (t == timezone_cache_time && |
- timezone_offset == timezone_cache_timezone_offset) { |
+ if (t == timezone_cache_time) { |
return timezone_cache_timezone; |
} |
var timezone = %DateLocalTimezone(t); |
timezone_cache_time = t; |
timezone_cache_timezone = timezone; |
- timezone_cache_timezone_offset = timezone_offset; |
return timezone; |
} |
@@ -248,8 +245,9 @@ function TimeStringUTC(date) { |
function LocalTimezoneString(date) { |
+ var timezone = LocalTimezone(UTC_DATE_VALUE(date)); |
+ |
var timezoneOffset = -TIMEZONE_OFFSET(date); |
- var timezone = LocalTimezone(UTC_DATE_VALUE(date), timezoneOffset); |
var sign = (timezoneOffset >= 0) ? 1 : -1; |
var hours = FLOOR((sign * timezoneOffset)/60); |
var min = FLOOR((sign * timezoneOffset)%60); |