Skip to content

Commit

Permalink
feat: adapt iOS date string format (#678)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdjdd authored Sep 25, 2023
1 parent 676758d commit 5f5cc8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const inherits = function inherits(parent, protoProps, staticProps) {
return child;
};

const parseDate = iso8601 => new Date(iso8601);
const parseDate = iso8601 => new Date(Date.parse(iso8601));

const setValue = (target, key, value) => {
// '.' is not allowed in Class keys, escaping is not in concern now.
Expand Down

0 comments on commit 5f5cc8f

Please sign in to comment.