]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - classes/statusnet.ini
Session GC fix: save session.modified field as UTC so our comparisons work.
[quix0rs-gnu-social.git] / classes / statusnet.ini
index ef631e28d376668940e579f05cc0a300ad14cab4..29fde93b5d497a347e9e005eb15b86c3607ea81d 100644 (file)
@@ -513,7 +513,20 @@ profile_id = K
 id = 130
 session_data = 34
 created = 142
-modified = 384
+modified = 142
+; Warning: using DB_DATAOBJECT_MYSQLTIMESTAMP (256) causes DB_DataObject
+; to SILENTLY REMOVE ATTEMPTS TO SET THIS FIELD DIRECTLY, which is pretty
+; bad because the default behavior for auto-updated TIMESTAMP fields is
+; to use local time. Local time can't be compared to UTC in any useful
+; way, so doing that breaks session GC.
+;
+; Instead we'll use the plain datetime settings so it'll actually save the
+; UTC value we provide when updating.
+;
+; Long-term fix: punch MySQL in the face until it understands that local
+; time is a tool of the cyber-devil.
+;
+;modified = 384
 
 [session__keys]
 id = K