From 4ae74841e0197180045109ea792dff8354633492 Mon Sep 17 00:00:00 2001 From: veselcraft Date: Mon, 24 Jan 2022 16:15:27 +0300 Subject: [PATCH] Date: Hide seconds if smth was created today or yesterday --- Web/Util/DateTime.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Web/Util/DateTime.php b/Web/Util/DateTime.php index 3650d722..2bcb0f9d 100644 --- a/Web/Util/DateTime.php +++ b/Web/Util/DateTime.php @@ -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