Am 06.05.2011 11:05, schrieb Ryan Schmidt:
> On May 6, 2011, at 03:59, datgs wrote:
>
>> I've worked with CakePHP magical created, modified and updated. And I
>> found that automation of getting current time based on php at
>>
>> $time = strtotime('now');
>>
>> I think it is not good for some case, for example if my MySQL server
>> time is different from HTTP server time and someone want to mine data
>> just at MySQL side, the result of query might be wrong.
>>
>> I think CakePHP team should make a time synchronic between HTTP Server
>> & Database Server before saving the data.
> A what? I didn't understand this sentence.
>
> If you're concerned that the clocks on various servers would be different, 
> then fix that problem by using NTP on every server.
>
>
>
Haven't tried, but you may be able to overwrite save() in your app_model
and use NOW() for the fields in question. $updatecols will only be set
automagically if they are not present in $this->data...

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to