Skip to content

Commit

Permalink
Use UTC date for short format
Browse files Browse the repository at this point in the history
  • Loading branch information
ixti committed Aug 2, 2012
1 parent 8ab87fd commit f21dcf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/js-yaml/constructor.js
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ SafeConstructor.prototype.constructYamlTimestamp = function constructYamlTimesta
day = +(match[3]);

if (!match[4]) { // no hour
return new Date(year, month, day);
return new Date(Date.UTC(year, month, day));
}

// match: [4] hour [5] minute [6] second [7] fraction
Expand Down

0 comments on commit f21dcf6

Please sign in to comment.