Commit ec31ef4e authored by Brian King's avatar Brian King Committed by Aaron Wells
Browse files

Use different strptime params for BSD compatibility

Bug 1414628: The "tm_yday" (day of the year) param is not supplied by
strptime by default on BSD systems such as Mac OS X.
It works just as well to use "tm_mday" (day of the month) param instead,
and it also makes more sense!

Change-Id: I1484dcde4dbd8199f578a4eb5a58a9f78de45635
parent 27d1f4f8
......@@ -336,8 +336,8 @@ function ptimetotime($ptime) {
$ptime['tm_yday'] + 1,
$ptime['tm_mon'] + 1,
$ptime['tm_year'] + 1900
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment