]> git.proxmox.com Git - pve-manager.git/commit - www/manager6/Utils.js
Add a new renderer for displaying dates in a human readable way
authorEmmanuel Kasper <e.kasper@proxmox.com>
Tue, 31 Jan 2017 15:48:49 +0000 (16:48 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 1 Feb 2017 09:09:38 +0000 (10:09 +0100)
commit3f6336553c654e75afc298eb42dfc4f9cfe77366
tree523add6b9f62f5e8d95c6a73d4a243ba6f5bbeb6
parentb0f820ab9f46bfe6e96b06305e79e800051e7328
Add a new renderer for displaying dates in a human readable way

render_timestamp returns a Date as
"2017-01-31 16:17:33"
which is good for computers and column sorting but unfit
for human consumption

the new renderer added by this patch renders a Date as
"Tuesday 31 January 2017 16:18:08"

Day-month-year order is the most used ordering
in the world and also commonly used in the USA for
official documents.
source:
https://en.wikipedia.org/wiki/Date_and_time_notation_in_the_United_States
https://en.wikipedia.org/wiki/Date_format_by_country
www/manager6/Utils.js