Re: [PHP] date() confustion

2012-04-26 Thread ma...@behnke.biz
Nathan Nobbe hat am 26. April 2012 um 06:40 geschrieben: > > INSERT TIMESTAMP: 1335414561 > INSERT DATE TIME: 2012-04-26 4:29:21 > > But then from the interactive interpreter on the same box (same php.ini as > well): > > php > echo date("Y-m-d G:i:s", 1335414561); > 2012-04-25 22:29:21 > > I g

Re: [PHP] date() confustion

2012-04-25 Thread Nathan Nobbe
On Wed, Apr 25, 2012 at 10:44 PM, Simon J Welsh wrote: > On 26/04/2012, at 4:40 PM, Nathan Nobbe wrote: > > > Hi everyone, > > > > Does anybody know what might influence the output of the date() function > > besides date.timezone setting? > > > > Running through some code in an app I'm working on

Re: [PHP] date() confustion

2012-04-25 Thread Simon J Welsh
On 26/04/2012, at 4:40 PM, Nathan Nobbe wrote: > Hi everyone, > > Does anybody know what might influence the output of the date() function > besides date.timezone setting? > > Running through some code in an app I'm working on, I have this code: > > $timestamp = time(); > $mysqlDatetime = date(

[PHP] date() confustion

2012-04-25 Thread Nathan Nobbe
Hi everyone, Does anybody know what might influence the output of the date() function besides date.timezone setting? Running through some code in an app I'm working on, I have this code: $timestamp = time(); $mysqlDatetime = date("Y-m-d G:i:s", $timestamp); Logging these values yields: INSERT