Skip to content

toSQL() or fromSQL() not compliant with DATETIME #1309

Answered by icambron
femto-code asked this question in Q&A
Discussion options

You must be logged in to vote

DateTime.now().toSQL({ includeOffset: false } ) should be what you want. The issue is only that MySQL doesn't accept the offset

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@femto-code
Comment options

@icambron
Comment options

@femto-code
Comment options

Answer selected by femto-code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants