Skip to content

A date_exported to sketch files - resolves #593#604

Merged
Pete-Y-CS merged 2 commits intomainfrom
add-export-date
Jun 2, 2025
Merged

A date_exported to sketch files - resolves #593#604
Pete-Y-CS merged 2 commits intomainfrom
add-export-date

Conversation

@Pete-Y-CS
Copy link
Copy Markdown
Collaborator

No description provided.

@Pete-Y-CS Pete-Y-CS requested a review from Sparrow0hawk May 28, 2025 12:41
Copy link
Copy Markdown
Contributor

@Sparrow0hawk Sparrow0hawk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Want your brief thoughts on tweak to proposed change but once covered off this will be good to merge.

}
copy.authority = authority;
copy.origin = "atip-v2";
copy.sketch_exported = new Date().toDateString();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think for dates/datetimes probably best to try and go with ISO 8601 format to help with machine readability as well as human. Which I think you can achieve with Date.prototype.toISOString.

Suggested change
copy.sketch_exported = new Date().toDateString();
copy.sketch_exported = new Date().toISOString();

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes complete sense - I tried a couple and went for increased human readability, but given it's going into the data platform better to go for the more easily processed format

@Pete-Y-CS Pete-Y-CS merged commit b7ae3f6 into main Jun 2, 2025
2 checks passed
@Pete-Y-CS Pete-Y-CS deleted the add-export-date branch June 2, 2025 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants