Revert "Move time_format pref to Horde"
authorJan Schneider <jan@horde.org>
Sun, 3 Oct 2010 18:57:13 +0000 (20:57 +0200)
committerJan Schneider <jan@horde.org>
Sun, 3 Oct 2010 18:58:35 +0000 (20:58 +0200)
This reverts commit ad1c9fcec705761a78f9b2b6fcea30803c10dc00.

Revert the changes to Kronolith which is using a completely different
time format preference.

kronolith/lib/Kronolith.php

index 9630e05..276d9ea 100644 (file)
@@ -152,7 +152,7 @@ class Kronolith
             'date_format' => str_replace(array('%e', '%d', '%a', '%A', '%m', '%h', '%b', '%B', '%y', '%Y'),
                                          array('d', 'dd', 'ddd', 'dddd', 'MM', 'MMM', 'MMM', 'MMMM', 'yy', 'yyyy'),
                                          Horde_Nls::getLangInfo(D_FMT)),
-            'time_format' => $prefs->getValue('time_format'),
+            'time_format' => $prefs->getValue('twentyFour') ? 'HH:mm' : 'hh:mm tt',
             'status' => array('tentative' => self::STATUS_TENTATIVE,
                               'confirmed' => self::STATUS_CONFIRMED,
                               'cancelled' => self::STATUS_CANCELLED,