Merge pull request #25927 from zhskay/@types/moment-timezone-add-keepLocalTime-option

@types/moment-timezone - added keepLocalTime converting option
This commit is contained in:
Benjamin Lichtman
2018-05-31 20:57:45 -07:00
committed by GitHub
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ declare module "moment" {
interface Moment {
tz(): string | undefined;
tz(timezone: string): Moment;
tz(timezone: string, keepLocalTime?: boolean): Moment;
zoneAbbr(): string;
zoneName(): string;
}
@@ -23,6 +23,7 @@ const language = "en";
moment.tz();
moment.tz("America/Los_Angeles");
moment.tz("America/Los_Angeles").tz("Asia/Tomsk", true);
moment.tz(num, "America/Los_Angeles");
moment.tz(arr, "America/Los_Angeles");