mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
Merge branch '3.2.x'
This commit is contained in:
commit
a4a57b5860
1 changed files with 6 additions and 0 deletions
|
@ -60,6 +60,12 @@ class datetime extends \DateTime
|
||||||
public function format($format = '', $force_absolute = false)
|
public function format($format = '', $force_absolute = false)
|
||||||
{
|
{
|
||||||
$format = $format ? $format : $this->user->date_format;
|
$format = $format ? $format : $this->user->date_format;
|
||||||
|
|
||||||
|
if (substr($this->user->lang_name, 0,2) != 'en')
|
||||||
|
{
|
||||||
|
$format = preg_replace('/([^\\\])S/','$1', $format);
|
||||||
|
}
|
||||||
|
|
||||||
$format = self::format_cache($format, $this->user);
|
$format = self::format_cache($format, $this->user);
|
||||||
$relative = ($format['is_short'] && !$force_absolute);
|
$relative = ($format['is_short'] && !$force_absolute);
|
||||||
$now = new self($this->user, 'now', $this->user->timezone);
|
$now = new self($this->user, 'now', $this->user->timezone);
|
||||||
|
|
Loading…
Add table
Reference in a new issue