Tiny Tiny RSS: Community

Requesting access to fork


#1

The owner has reached maximum creation limit of 0 repositories.

Trying to update include/functions.php:

diff --git a/include/functions.php b/include/functions.php
index af52b480..a1aeb713 100755
--- a/include/functions.php
+++ b/include/functions.php
@@ -951,7 +951,11 @@
                if ($eta_min && time() + $tz_offset - $timestamp < 3600) {
                        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)) {
-                       return date("G:i", $timestamp);
+                       $format = get_pref('SHORT_DATE_FORMAT', $owner_uid);
+                       if (strpos((strtolower($format)), "a") === false)
+                               return date("G:i", $timestamp);
+                       else
+                               return date("g:i a", $timestamp);
                } else if (date("Y", $timestamp) == date("Y", time() + $tz_offset)) {
                        $format = get_pref('SHORT_DATE_FORMAT', $owner_uid);
                        return date($format, $timestamp);

To add am/pm based on what’s in SHORT_DATE_FORMAT for 12 Hour time in recent feeds? and 24 hour clock and headline question

Basically, if AM/PM (a or A) is in the short date, show in 12h time.


12 Hour time in recent feeds?
#2

you should be able to fork now