Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert to ISO Date #36

Closed
MrSwitch opened this issue Apr 3, 2018 · 2 comments · Fixed by #84
Closed

Convert to ISO Date #36

MrSwitch opened this issue Apr 3, 2018 · 2 comments · Fixed by #84

Comments

@MrSwitch
Copy link
Member

MrSwitch commented Apr 3, 2018

When a date field is returned grouped with other fields it is not formatted by the likes of node-mysql2

Apply post formatting to convert fields to date format.

i.e. 2018-04-03 01:00:00 should be 2018-04-03T01:00:00.000Z

@MrSwitch
Copy link
Member Author

MrSwitch commented Apr 3, 2018

date.replace(/^(\d{4}-\d{2}-\d{2})\s(\d{2}:\d{2}:\d{2})$/, (m, date, time) => `${date}T${time}.000Z`);

@MrSwitch
Copy link
Member Author

MrSwitch commented Sep 3, 2019

🎉 This issue has been resolved in version 0.32.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

MrSwitch pushed a commit that referenced this issue Sep 3, 2019
## [0.32.2](v0.32.1...v0.32.2) (2019-09-03)

### Bug Fixes

* **datatype:** fix the broken datatype formatting, [#36](#36), [#84](#84) ([0d46af2](0d46af2))
@zube zube bot removed the [zube]: Done label Oct 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants