occ: Improve user:lastseen
timestamp
#44641
Labels
0. Needs triage
Pending check for reproducibility or if it fits our roadmap
enhancement
feature: occ
feature: users and groups
Is your feature request related to a problem? Please describe.
Regarding the improvements to
occ
in #39669 that were recently merged, the times returned always seem to be in UTC. This is a proposal to improve the date/time formatting to either:A) leave all times in hardcoded UTC and make that explicit (by adding UTC to the end of the time), or
B) show the times from the PHP timezone set in
php.ini
(and display that timezone information after the date/time).Also, at the moment, the output of
user:info
timestamp is:2024-04-03T00:40:22+00:00
which is different touser:lastseen
's format of2024-04-03 22:29
.There is also a bug in
user:info
if login has never been seen, which I'll describe at the end of this post.Describe the solution you'd like
Personally, I'd like option B, to show the times from the PHP timezone set in
php.ini
and display that timezone information after the date/time, and unify for each output.For example, something like:
Describe alternatives you've considered
The other alternative could be to leave the times displayed always in UTC, but to just make that explicit:
For example:
or similar...
There is also a bug in
user:info
if login has never been seen. It appears to show a Unix epoch time, instead of perhaps something like 'never', which we could also make consistent withuser:lastseen
output, for instance:The text was updated successfully, but these errors were encountered: