gnome-shell/js/misc
Florian Müllner ebf132770e util: Add formatTime() helper method
Displaying a time is more complex than it appears at first glance:
it should respect the user's choice regarding 12- our 24-hour format (but
only when supported by the locale) and follow the LC_TIME rather than the
LC_MESSAGES setting.
So rather than getting it more or less right in various places, it makes
sense to defer to a helper method which hopefully does the right thing. The
method added by this patch is based on _formatTimestamp in telepathyClient
with some minor tweaks:
 - there's an additional params parameter which allows enforcing
   a time-only format, even on dates other than the current one
 - only a single desktop settings object is created and shared between
   invocations

https://bugzilla.gnome.org/show_bug.cgi?id=745111
2015-03-04 13:55:01 +01:00
..
config.js.in make NetworkManager optional 2014-02-11 18:04:44 -05:00
extensionUtils.js Fix typo 2014-12-11 15:48:51 +01:00
fileUtils.js fileUtils: Remove listDirAsync() 2014-01-09 13:23:26 -05:00
gnomeSession.js Stringify the xml definitions for E4X removal 2013-10-25 08:57:27 +11:00
history.js js: Use EVENT_PROPAGATE/EVENT_STOP constants in event handlers 2013-12-16 18:27:19 +01:00
ibusManager.js ibusManager: Disable IBus input sources on password entries 2015-01-12 16:13:45 +01:00
jsParse.js lookingGlass: Add tab-completion 2011-11-05 13:05:11 -04:00
keyboardManager.js keyboardManager: Adopt to changes in meta_display_freeze_keyboard 2014-10-14 14:47:23 -07:00
loginManager.js loginManager: Kill ConsoleKit support 2014-04-25 15:53:45 +02:00
modemManager.js Stringify the xml definitions for E4X removal 2013-10-25 08:57:27 +11:00
objectManager.js Stringify the xml definitions for E4X removal 2013-10-25 08:57:27 +11:00
params.js *.js: Make emacs modelines consistent 2011-10-11 08:05:12 -04:00
smartcardManager.js Stringify the xml definitions for E4X removal 2013-10-25 08:57:27 +11:00
util.js util: Add formatTime() helper method 2015-03-04 13:55:01 +01:00