Fix DST issue in SensingPrims.primTimestamp.
This commit is contained in:
parent
623dce5402
commit
4b7fe36066
1 changed files with 1 additions and 1 deletions
|
@ -245,7 +245,7 @@ SensingPrims.prototype.primTimestamp = function(b) {
|
|||
var epoch = new Date(2000, 0, 1);
|
||||
var dst = now.getTimezoneOffset() - epoch.getTimezoneOffset();
|
||||
var msSince = now.getTime() - epoch.getTime();
|
||||
msSince += (now.getTimezoneOffset() - dst) * 60000;
|
||||
msSince -= dst * 60000;
|
||||
return msSince / 86400000;
|
||||
};
|
||||
|
||||
|
|
Reference in a new issue