Closed (fixed)
Project:
Drush
Component:
PM (dl, en, up ...)
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Dec 2010 at 05:11 UTC
Updated:
25 Dec 2010 at 13:10 UTC
Jump to comment: Most recent file
I guess Drush should just specify UTC or whatever Unix time is uses. That would avoid the following error: "It is not safe to rely on the system's timezone ...."
Using php 5.3.3 on windows.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | drush-gmdate.patch | 2.65 KB | greg.1.anderson |
Comments
Comment #1
greg.1.anderson commentedThe problem is the date() function, which takes a time value that is in the units seconds since the epoch in GMT, and formats it to a string. In this instance, it is safe to rely on the system's timezone, but php does not believe that it is.
This patch replaces date() with gmdate(), the later of which works just like date(), but it formats in GMT rather than the local timezone. Anyway, it should do the trick.
Comment #2
greg.1.anderson commentedComment #4
moshe weitzman commentedCommitted. Thx.