mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 22:57:14 +02:00
Fix - Dates where being increased by one month when editing in admin.
This commit is contained in:
@@ -247,11 +247,12 @@ class convert
|
|||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
$unxTimestamp = mktime(
|
$unxTimestamp = mktime(
|
||||||
$tdata['tm_hour'],
|
$tdata['tm_hour'],
|
||||||
$tdata['tm_min'],
|
$tdata['tm_min'],
|
||||||
$tdata['tm_sec'],
|
$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_mday'],
|
||||||
($tdata['tm_year'] + 1900)
|
($tdata['tm_year'] + 1900)
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user