-
Notifications
You must be signed in to change notification settings - Fork 249
Normalize head date (server: Date, client: string) #397
Comments
Looks like this is a YAML feature see https://github.com/nodeca/js-yaml#supported-yaml-types. |
So maybe we should normalize in the emitted collection on the client side. |
I think normalize everything to string is better. Less code on client size. And less magic. I don't want user to ask us about what's going on |
Using |
FYI yahoo/serialize-javascript#16 I successfully used my PR but this works for collection only: pages are JSON. I AM SO FUCKIN STUPID. Blocked by #434 for a full resolution, meanwhile I will force dates to be ISOString on node, but JS with dates is kind of ready. |
Going to be fixed with #925 |
What is your plan for this? |
everything as a string, and we dont care about the format as long as it's parsable by |
Not a problem with v1 |
Following #395
gray-matter transform date field to Date. But on client side, we have raw json, so string. We should normalize that somewhere. Maybe after gray-matter call.
The text was updated successfully, but these errors were encountered: