Skip to content

Commit

Permalink
Fix issue #1110 (part 3)
Browse files Browse the repository at this point in the history
  • Loading branch information
mystralkk committed Jan 19, 2022
1 parent 385d47b commit 156aa4f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion public_html/lib-common.php
Original file line number Diff line number Diff line change
Expand Up @@ -9297,8 +9297,9 @@ function COM_gmstrftime($format, $timestamp = null)
{
global $_LOCALE;

return $_LOCALE->strftime($format, $timestamp);
return $_LOCALE->gmstrftime($format, $timestamp);
}

/**
* Format a local time/date according to locale settings
*
Expand Down
2 changes: 1 addition & 1 deletion system/classes/Locale.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ public function strftime($format, $timestamp = null)
break;

case 'j': // 3-digit day of th year: '001' - '366'
$replace = substr('00' . (string) ((int) date('z', $this->timestamp) + 1), -3);
$replace = substr('00' . ((int) date('z', $this->timestamp) + 1), -3);
break;

case 'k': // hour in 24-hour format: ' 0' - '23'
Expand Down

0 comments on commit 156aa4f

Please sign in to comment.