You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Without milliseconds in the format, the time information in the database can't be used to determine intervals <1 second. For example, if you have one event at 12:15:24.999 and another at 12:15:45.001, the database will record them as 12:15:24 and 12:15:45, showing a 21s time difference even though its much closer to 20s (20.002).
I think the best way to fix this is to add isoDateTimeMilliseconds() and isoTimeMilliseconds(), copying these functions
I may be missing some functions, particularly as far as the underlying db column type. I'm pretty sure mariadb supports milliseconds in datetime, and I believe sqlite just stores it as text so it should work no problem.
The text was updated successfully, but these errors were encountered:
See louislam/uptime-kuma#1422 and louislam/uptime-kuma#1428
Without milliseconds in the format, the time information in the database can't be used to determine intervals <1 second. For example, if you have one event at 12:15:24.999 and another at 12:15:45.001, the database will record them as 12:15:24 and 12:15:45, showing a 21s time difference even though its much closer to 20s (20.002).
I think the best way to fix this is to add
isoDateTimeMilliseconds()
andisoTimeMilliseconds()
, copying these functionsredbean-node/lib/redbean-node.ts
Lines 969 to 979 in d9e2e65
redbean-node/lib/redbean-node.ts
Lines 997 to 1007 in d9e2e65
redbean-node/lib/redbean-node.ts
Lines 1014 to 1017 in d9e2e65
redbean-node/lib/redbean-node.ts
Lines 1019 to 1024 in d9e2e65
We'd also need to update
getDataType()
redbean-node/lib/redbean-node.ts
Line 362 in d9e2e65
and
isValidType()
redbean-node/lib/redbean-node.ts
Line 409 in d9e2e65
I may be missing some functions, particularly as far as the underlying db column type. I'm pretty sure mariadb supports milliseconds in
datetime
, and I believe sqlite just stores it as text so it should work no problem.The text was updated successfully, but these errors were encountered: