Re: Is this possible a big issue

2011-05-07 Thread datgs
strtotime('now') is from the CakePHP core, I have no comment :) Someone told me about NPC to sync the time among multiple servers. Anyway, it should be the job of administrator :) On May 7, 4:36 pm, Elte Hupkes wrote: > Also make sure you use the same timezone on all servers.. I usually > use da

Re: Is this possible a big issue

2011-05-07 Thread Elte Hupkes
Also make sure you use the same timezone on all servers.. I usually use date_default_timezone_set('UTC') and the UTC_ MySQL functions to that end. On a different note, why use strtotime('now') instead of time()? On May 6, 8:09 pm, datgs wrote: > Thanks, I think NTP is a good choice. > > On May 6

Re: Is this possible a big issue

2011-05-06 Thread datgs
Thanks, I think NTP is a good choice. On May 6, 4:05 pm, Ryan Schmidt wrote: > 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'); > > >

Re: Is this possible a big issue

2011-05-06 Thread 0x20h
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,

Is this possible a big issue

2011-05-06 Thread datgs
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

Re: Is this possible a big issue

2011-05-06 Thread 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 differe