Hey Tom,
Thanks for your reply. I just went through all your suggestions. The problem is occurring within every model, where I'm using the migration tool's `t.timestamps()` to generate the timestamp columns. Here's an example of just the user model. I'm providing it because I'm not really sure what you meant when you said "and On Update Current_Timestamp is unticked"
CREATE TABLE `users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`firstname` varchar(24) NOT NULL,
`lastname` varchar(24) DEFAULT NULL,
`mobile` varchar(48) DEFAULT NULL,
`password` varchar(64) NOT NULL,
`email` varchar(256) NOT NULL,
`resettoken` varchar(48) DEFAULT NULL,
`lastseen` datetime DEFAULT NULL,
`resettokenexpirery` datetime DEFAULT NULL,
`waiverat` datetime DEFAULT NULL,
`forcenewpassword` tinyint(1) DEFAULT '0',
`isverifiedemail` tinyint(1) DEFAULT '0',
`isadmin` tinyint(1) DEFAULT '0',
`iscoordinater` tinyint(1) DEFAULT '0',
`createdat` datetime DEFAULT NULL,
`updatedat` datetime DEFAULT NULL,
`deletedat` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=70 DEFAULT CHARSET=utf8;
I have followed your example app to track changes in the auditlog model. When I update the user model, I'll see an entry like this...
{"model":"User","properties":{"firstname":{"CHANGEDTO":"Chris","CHANGEDFROM":"Chri"}},"key":"1"}
As you can see, updatedAt is not one of the changes tracked, but the other changes (firstname in this example) do successfully save to the database.
I also tried adding set(timeStampMode="local"); to the settings file, but got no love from that either. I have Lucee setup to use UTC as the server time also, so I would expect that to be compatible with the 2.x default.
I appreciate all your thoughts. So far, nothing seems to have helped me understand this. I'll start digging into the wheels code and see if I can get any closer to figuring out what the problem might be. If you can think of any particular files I should start looking at, I'd appreciate it.