diff options
author | 2012-12-13 17:51:34 -0500 | |
---|---|---|
committer | 2012-12-13 17:51:34 -0500 | |
commit | bf6fbd81d4e60a87b19f8c8149349217b4620360 (patch) | |
tree | d0d978aa5c8540c105c0435d76731f00a57b519d | |
parent | 5005de069d5f7671ffac6e9d3e5833cc10b63cb0 (diff) |
Fix determination of MySQL timestamp hour fields (may still be wrong once DST bit flips)
-rw-r--r-- | src/mysql.sml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mysql.sml b/src/mysql.sml index 999a9ea3..f708da04 100644 --- a/src/mysql.sml +++ b/src/mysql.sml @@ -1098,7 +1098,7 @@ fun queryPrepared {loc, id, query, inputs, cols, doCols, nested} = string ".month = tms.tm_mon + 1;", newline], oneField "day" "mday", - oneField "hour" "hour - 1", + oneField "hour" "hour", oneField "minute" "min", oneField "second" "sec", newline, @@ -1379,7 +1379,7 @@ fun dmlPrepared {loc, id, dml, inputs, mode} = oneField "year" "year + 1900", oneField "month" "mon + 1", oneField "day" "mday", - oneField "hour" "hour - 1", + oneField "hour" "hour", oneField "minute" "min", oneField "second" "sec", newline, |