1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-05 22:27:34 +02:00

Fix - Dates where being increased by one month when editing in admin.

This commit is contained in:
Cameron
2013-11-09 20:08:41 -08:00
parent 1e50e577a0
commit 5033689543

View File

@@ -247,11 +247,12 @@ class convert
{
return null;
}
$unxTimestamp = mktime(
$tdata['tm_hour'],
$tdata['tm_min'],
$tdata['tm_sec'],
$tdata['tm_mon'] + 1,
$tdata['tm_mon'] , // Not sure why there was a +1 here, it was increasing the dates by one month.
$tdata['tm_mday'],
($tdata['tm_year'] + 1900)
);