Hi everyone,

I'm still experimenting with Cake and feel I'm missing something; upon
login, I do this;

$someone['User']['last_login'] = date('Y-m-d H:i:s');
$this->User->save($someone);

Which should be updating the last_login field with the current
datetimestamp; though it doesn't work. however this;

$someone['User']['last_login'] = date('Y-m-d H:i:s');
$this->User->save($someone, false);

works like a charm (added the no validation flag to the save command).

Why?!

additionnally, any way I could get the db server time? thus unserting
now() in mysql instead of the webserver time...?

Any thoughts welcome!

Cheers,

Seb.


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Cake PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to