1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 03:40:37 +02:00

Merge pull request #3130 from SimSync/master

Fixed smaller issues in date_handler.php
This commit is contained in:
Cameron
2018-05-16 14:07:34 -07:00
committed by GitHub
2 changed files with 72 additions and 7 deletions

View File

@@ -172,7 +172,7 @@ class e_date
break;
case 'inputtime':
$mask .= e107::getPref('inputtime', '%H:%M');
$mask = e107::getPref('inputtime', '%H:%M');
break;
case 'forum': // DEPRECATED - temporary here from BC reasons only
@@ -791,7 +791,7 @@ class e_date
$unxTimestamp = mktime($vals['tm_hour'], $vals['tm_min'], $vals['tm_sec'], ($vals['tm_mon'] + 1), $vals['tm_mday'], ($vals['tm_year'] + 1900));
$vals['tm_fmon'] = strftime('%B', mktime($vals['tm_hour'], $vals['tm_min'], $vals['tm_sec'], $vals['tm_mon']));
$vals['tm_fmon'] = strftime('%B', mktime($vals['tm_hour'], $vals['tm_min'], $vals['tm_sec'], $vals['tm_mon'] + 1));
$vals['tm_wday'] = (int) strftime('%w', $unxTimestamp); // Days since Sunday (0-6)
$vals['tm_yday'] = (strftime('%j', $unxTimestamp) - 1); // Days since January 1 (0-365)