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

Date columns loses zeroes in sqlite #177

Closed
Luke265 opened this issue Jan 8, 2017 · 2 comments
Closed

Date columns loses zeroes in sqlite #177

Luke265 opened this issue Jan 8, 2017 · 2 comments
Labels

Comments

@Luke265
Copy link
Contributor

Luke265 commented Jan 8, 2017

When saving column with a date or when using @CreateDateColumn or @UpdateDateColumn, it saves in this format: 2017-1-8 00:57:4 and sqlite doesn't like that (DATETIME('2017-1-8 00:57:4') returns null). Not sure how about other databases.

TypeORM: v0.0.6
NodeJS: v7.2.0

@pleerock
Copy link
Member

because resolving all conflicts and removing moment by reimplementing everything could take a lot of time I made a quick fix by myself. Can you please try it in 0.0.7-alpha.10?
Really appreciate what you did in your PR btw, sorry that its merging has delayed.

@pleerock pleerock added the bug label Jan 12, 2017
@pleerock
Copy link
Member

I think this issue is already resolved, please check it and let me know if its not if you are still interested in this issue.

Kononnable added a commit that referenced this issue Oct 10, 2019
Added support for detached entities
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants