mirror of
https://github.com/openvk/openvk
synced 2024-12-23 00:51:03 +03:00
Date: Hide seconds if smth was created today or yesterday
This commit is contained in:
parent
b9f4cedca5
commit
4ae74841e0
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ class DateTime
|
|||
|
||||
if($this->timestamp >= strtotime("midnight")) { # Today
|
||||
if($diff->h >= 1)
|
||||
return tr("time_today") . tr("time_at_sp") . ovk_strftime_safe("%X", $this->timestamp);
|
||||
return tr("time_today") . tr("time_at_sp") . ovk_strftime_safe(" %R %p", $this->timestamp);
|
||||
else if($diff->i < 2)
|
||||
return tr("time_just_now");
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue