-
-
Notifications
You must be signed in to change notification settings - Fork 33.5k
Closed
Labels
questionIssues that look for answers.Issues that look for answers.v8 engineIssues and PRs related to the V8 dependency.Issues and PRs related to the V8 dependency.
Description
- Version: Node.js v6.0.0, npm v3.8.6
- Platforms: Linux Mint 17.3, Ubuntu 16.04, Alpine 3.3.3
I get an issue while calculating time from a date string. Here is the function strtotime, as its name, would convert a standard date string to Unix timestamp.
var strtotime = (t) => {
return new Date(t).getTime();
};
From my local time (GMT+7), the result for this function is different between node.js v6.0.0 and older versions.
let s = 'Thu, 18 Feb 2016 15:28:20 GMT+07';
let t = strtotime(s);
t is equal to 1455784100000 in node.js v6.0.0 but 1455808880000 in older versions.
Issue also happens in Travis server. Here is the build info:
https://travis-ci.org/ndaidong/bella.js/builds/126068193
Anyone get the same problem? And what wrong here?
Thanks,
Dong
Metadata
Metadata
Assignees
Labels
questionIssues that look for answers.Issues that look for answers.v8 engineIssues and PRs related to the V8 dependency.Issues and PRs related to the V8 dependency.