mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-14 01:35:54 +00:00
Make article date select 12/24 time based on SHORT_DATE_FORMAT
This commit is contained in:
@@ -951,7 +951,11 @@
|
|||||||
if ($eta_min && time() + $tz_offset - $timestamp < 3600) {
|
if ($eta_min && time() + $tz_offset - $timestamp < 3600) {
|
||||||
return T_sprintf("%d min", date("i", time() + $tz_offset - $timestamp));
|
return T_sprintf("%d min", date("i", time() + $tz_offset - $timestamp));
|
||||||
} else if (date("Y.m.d", $timestamp) == date("Y.m.d", time() + $tz_offset)) {
|
} else if (date("Y.m.d", $timestamp) == date("Y.m.d", time() + $tz_offset)) {
|
||||||
|
$format = get_pref('SHORT_DATE_FORMAT', $owner_uid);
|
||||||
|
if (strpos((strtolower($format)), "a") === false)
|
||||||
return date("G:i", $timestamp);
|
return date("G:i", $timestamp);
|
||||||
|
else
|
||||||
|
return date("g:i a", $timestamp);
|
||||||
} else if (date("Y", $timestamp) == date("Y", time() + $tz_offset)) {
|
} else if (date("Y", $timestamp) == date("Y", time() + $tz_offset)) {
|
||||||
$format = get_pref('SHORT_DATE_FORMAT', $owner_uid);
|
$format = get_pref('SHORT_DATE_FORMAT', $owner_uid);
|
||||||
return date($format, $timestamp);
|
return date($format, $timestamp);
|
||||||
|
|||||||
Reference in New Issue
Block a user