Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
[enh] Human readable date #552
See issue 901 for more informations.
In general, date are not well managed, this PR try to harmonize the date management.
Filename containing a date should be in UTC.
CLI should display date for human and use the system timezone to display date (See YunoHost/moulinette#184 )
Webadmin should display date in the broser locale timezone (See YunoHost/yunohost-admin#216 )
Info: yunohost logs lines seems use asctime to store dates in system local timezone (without timezone info). I don't know if it's a good idea.
How to test
We discussed this during the pycon fr. I think we should consider make this change by default (without option -H) and give a date (as moulinette and yunohost-admin contains a code to transmit date through API).
We could add an option to get the timestamp but i think it's not necessary.
The goal of this change is to give the better UX has possible by default.
I can implement this change if others are agree. @kiroul, feel free to do it if you have time :)
This was referenced
Dec 9, 2018
Is the intention to produce a different behavior compared to
It's different now() return a naive Locale date, utcnow() a naive UTC date.