mirror of
https://github.com/samsonjs/strftime.git
synced 2026-04-24 14:27:38 +00:00
Merge pull request #38 from w0den/patch-1
Improve detection of timezone name
This commit is contained in:
commit
cc0bf35fc1
1 changed files with 1 additions and 1 deletions
|
|
@ -260,7 +260,7 @@
|
||||||
return "GMT";
|
return "GMT";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
var tzString = d.toString().match(/\((\w+)\)/);
|
var tzString = d.toString().match(/\(([\w\s]+)\)/);
|
||||||
return tzString && tzString[1] || '';
|
return tzString && tzString[1] || '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue