Date: Olson-timezone-support (real 'z', 'v', 'V') and options.timeZone#701
Closed
rxaviers wants to merge 2 commits into
Closed
Date: Olson-timezone-support (real 'z', 'v', 'V') and options.timeZone#701rxaviers wants to merge 2 commits into
rxaviers wants to merge 2 commits into
Conversation
11 tasks
Member
Author
|
The below is wrong, it should use "British Summer Time" name instead. Globalize('en-GB').formatDate(new Date(2017,8,1), {datetime: 'full', timeZone: 'Europe/London'})
'Friday, 1 September 2017 at 04:00:00 GMT+01:00'Edit: this has been fixed. |
7cb9891 to
c82a6d0
Compare
Member
Author
|
To quickly demo what's coming... I hope you like it! var Globalize = require( "globalize" );
Globalize.load( require( "cldr-data" ).entireSupplemental() );
Globalize.load( require( "cldr-data" ).entireMainFor( "en" ) );
Globalize.loadIANATimezone( require( "iana-tz-data" ) );
Globalize( "en" ).formatDate(new Date(), {datetime: "short", timeZone: "America/Los_Angeles"});
// > '3/19/17, 3:19 PM'
Globalize( "en" ).formatDate(new Date(), {datetime: "short", timeZone: "America/New_York"});
// > '3/19/17, 6:19 PM'
Globalize( "en" ).formatDate(new Date(), {datetime: "short", timeZone: "America/Sao_Paulo"});
// > '3/19/17, 7:19 PM'
Globalize( "en" ).formatDate(new Date(), {datetime: "short", timeZone: "Europe/Berlin"});
// > '3/19/17, 11:19 PM'
Globalize( "en" ).formatDate(new Date(), {datetime: "full", timeZone: "America/Los_Angeles"});
// > 'Sunday, March 19, 2017 at 3:19:22 PM Pacific Daylight Time'
Globalize( "en" ).formatDate(new Date(), {datetime: "full", timeZone: "America/New_York"});
// > 'Sunday, March 19, 2017 at 6:19:22 PM Eastern Daylight Time'
Globalize( "en" ).formatDate(new Date(), {datetime: "full", timeZone: "America/Sao_Paulo"});
// > 'Sunday, March 19, 2017 at 7:19:22 PM Brasilia Standard Time'
Globalize( "en" ).formatDate(new Date(), {datetime: "full", timeZone: "Europe/Berlin"});
// > 'Sunday, March 19, 2017 at 11:19:53 PM Central European Standard Time' |
Contributor
|
@rxaviers I LOVE YOU. We need this. |
rxaviers
pushed a commit
to rxaviers/zoned-date-time
that referenced
this pull request
Mar 30, 2017
Importing work from globalizejs/globalize#701
rxaviers
added a commit
to rxaviers/zoned-date-time
that referenced
this pull request
Mar 30, 2017
Importing work from globalizejs/globalize#701
rxaviers
pushed a commit
to rxaviers/zoned-date-time
that referenced
this pull request
Apr 3, 2017
Importing work from globalizejs/globalize#701
rxaviers
added a commit
to rxaviers/zoned-date-time
that referenced
this pull request
Apr 3, 2017
Importing work from globalizejs/globalize#701
rxaviers
added a commit
to rxaviers/zoned-date-time
that referenced
this pull request
Apr 6, 2017
Imported from globalizejs/globalize#701
5ba59fe to
e3d4838
Compare
Contributor
|
Any updates on this? We need to add support for timezones in the next few weeks. |
Contributor
Member
Author
|
Hi @mattyork, we should have a 1.3.0 soon. About the issue above, Thanks for reporting it. |
Member
Author
|
For the record, the fix for the dateFormatter runtime issue is here: #724 |
Member
Author
|
Rebased and squashed |
Member
Author
|
Merged 🕺 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Checklist:
options.timeZoneoptions.timeZoneoptions.timeZoneNotes:
z,v,Vand more) #340