Skip to content

Commit 505b171

Browse files
make current-date match the date in the local timezone
1 parent 0893853 commit 505b171

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/node-rules.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
var toDate = function (val) {
8989
switch (val) {
9090
case 'now': return moment.utc();
91-
case 'current-date': return moment.utc().startOf('day');
91+
case 'current-date': return moment().utc(true).startOf('day');
9292
default: return moment.utc(val);
9393
}
9494
}

0 commit comments

Comments
 (0)