'desc' => _("Set your preferred language, timezone and date preferences."),
'members' => array(
'language', 'timezone', 'twentyFour', 'date_format',
- 'date_format_mini', 'first_week_day'
+ 'date_format_mini', 'time_format', 'first_week_day'
)
);
'desc' => _("Choose how to display dates (abbreviated format):"),
);
+// Time format
+$_prefs['time_format'] = array(
+ 'value' => '%X',
+ 'type' => 'enum',
+ 'enum' => array(
+ '%X' => strftime('%X'),
+ '%H:%M:%S' => strftime('%H:%M:%S'),
+ '%I:%M:%S %p' => strftime('%I:%M:%S %p'),
+ '%l:%M:%S %p' => strftime('%l:%M:%S %p'),
+ '%H:%M' => strftime('%H:%M'),
+ '%I:%M%p' => strftime('%I:%M%p'),
+ '%l:%M%p' => strftime('%l:%M%p'),
+ ),
+ 'desc' => _("Choose how to display times:")
+);
+
// what day should be displayed as the first day of the week?
$_prefs['first_week_day'] = array(
'value' => '0',
'desc' => _("Change display preferences such as how many messages you see on each page and how messages are sorted."),
'members' => array(
'mailbox_start', 'sortby', 'sortdir', 'sortdate', 'max_msgs',
- 'from_link', 'time_format', 'atc_flag'
+ 'from_link', 'atc_flag'
)
);
'desc' => _("The From: column of the message should be linked:")
);
-// Time format for messages dated today
-$_prefs['time_format'] = array(
- 'value' => '%X',
- 'type' => 'enum',
- 'enum' => array(
- '%X' => strftime('%X'),
- '%H:%M:%S' => strftime('%H:%M:%S'),
- '%I:%M:%S %p' => strftime('%I:%M:%S %p'),
- '%H:%M' => strftime('%H:%M'),
- '%I:%M%p' => strftime('%I:%M%p'),
- ),
- 'desc' => _("Format of message dates in the mailbox view for messages dated today")
-);
-
// Display attachment information in mailbox list.
// Disabled by default, and not shown to user, because this display requires
// substantial overhead to parse the message structures of all message in
Preferences
-----------
+The 'time_format' preference has been moved to Horde.
+
The following preferences are no longer used and may be safely removed from
your ``config/prefs.php`` file and your preferences backend::
'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('twentyFour') ? 'HH:mm' : 'hh:mm tt',
+ 'time_format' => $prefs->getValue('time_format'),
'status' => array('tentative' => self::STATUS_TENTATIVE,
'confirmed' => self::STATUS_CONFIRMED,
'cancelled' => self::STATUS_CANCELLED,