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

Export 0000-00-00 00:00:00 dates as Unix time #7918

Open
nestordedios opened this issue Jun 11, 2021 · 0 comments
Open

Export 0000-00-00 00:00:00 dates as Unix time #7918

nestordedios opened this issue Jun 11, 2021 · 0 comments

Comments

@nestordedios
Copy link
Contributor

Hi!!

When exporting content using app/nut database:export, if there are records which have automatically 0000-00-00 00:00:00 set in datecreated, datechanged or any kind of date field, the records are being exported with negative dates looking something like -0001-11-30 00:00:00.

When for instance using the Conmiex extension to migrate content from Bolt 3 to Bolt 5 at the moment of importing the record with the negative date an Exception will be thrown as the date has an incorrect value.

Error

Maybe the incorrect exported dates could be set with the Unix time (1900-01-01 00:00:00) as the default to avoid this break everytime an export and import is made.

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

No branches or pull requests

1 participant