Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(244)

Unified Diff: src/js/i18n.js

Issue 1509273007: Allow ICU to normalize time zones (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Misspell shorter Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-487322.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/js/i18n.js
diff --git a/src/js/i18n.js b/src/js/i18n.js
index b2eef6f18dd126e82fa2df91ffecad55cafacb42..a859a9fbeb9f1028e0c6245364a800651d8e7f29 100644
--- a/src/js/i18n.js
+++ b/src/js/i18n.js
@@ -1574,7 +1574,7 @@ function initializeDateTimeFormat(dateFormat, locales, options) {
var formatter = %CreateDateTimeFormat(
requestedLocale, {skeleton: ldmlString, timeZone: tz}, resolved);
- if (!IS_UNDEFINED(tz) && tz !== resolved.timeZone) {
+ if (resolved.timeZone === "Etc/Unknown") {
throw MakeRangeError(kUnsupportedTimeZone, tz);
}
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-487322.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698