Replies: 2 comments 1 reply
-
It looks like sequel is treating the value as seconds while it is stored in milliseconds.
|
Beta Was this translation helpful? Give feedback.
1 reply
-
SQLite does not support date/time columns natively. Your SQLite database stores timestamps in a way that Sequel does not support by default. If you aren't familiar with ruby, I recommend using a different tool than Sequel to do the conversion. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey, I'm going to migrate database from sqlite to postgres, but got some problems. The createdAt field in sqlite is unix timestamp format (eg: 1692666514210), and I want to convert to datetime type in postgres. By default, when I run the command:
It converts 1692666514210 to
55608-6-19 08:08:34+07
And my expectation is:
2023-08-22 08:08:34+07
Beta Was this translation helpful? Give feedback.
All reactions