Skip to content

Commit

Permalink
Fix deserializing dates.
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Orvell committed Nov 16, 2017
1 parent a7b46b1 commit 8d24c21
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/mixins/property-accessors.html
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,9 @@
console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${value}`);
}
break;
case Date:
outValue = new Date(value);
break;
default:
outValue = super._deserializeValue(value, type);
break;
Expand Down

0 comments on commit 8d24c21

Please sign in to comment.