Yii Framework Forum: CFileLogRoute writes anomalous timestamps - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

CFileLogRoute writes anomalous timestamps Rate Topic: -----

#1 User is offline   jbr 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 6
  • Joined: 07-February 09

Posted 07 February 2009 - 09:18 PM

Suggest environment settings to resolve the following:

PHP says there is a -06:00 difference between GMT and the local timezone
PHP says the Timezone offset in seconds is -21600
Yii says there is a 21600 (timestamp) difference between GMT and the local timezone
Yii says, correctly, that PHP runs in the following local timezone: America/Chicago

There is, however, a seven hour time difference between the timestamp that CFileLogRoute writes and the timestamps written by CWebLogRoute.  CFileLogRoute writes timestamps seven hours ahead of those written by CWebLogRoute.

CWebLogRoute logs timestamps correctly, as they match what PHP says (using: date(P) and date(Z)) and what Yii says ( using: Ctimestamp::getGMTDiff() and using: date_default_timezone_get() ).

If this a bug, I have steps defined to reproduce the situation and will file the bug.
I do not want to fill up a bug tracker if this is merely a configuration tuning issue.
0

#2 User is offline   qiang 

  • Yii Project Lead
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,875
  • Joined: 04-October 08
  • Location:DC, USA

Posted 08 February 2009 - 10:57 AM

Thanks. Fixed.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users