You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pako81
changed the title
fix: user:list now correctly displays user's creation time
fix: user:list -a command now correctly displays user's creation time
Nov 27, 2023
Side note: we should probably show the date with a standard format.
Should we not rather stay consistent with the lastLogin attribute which is also reported in timestamp format?
Another possibility would be to also convert lastLogin but in this case we need to consider the case where it is set to 0 (user has not performed the first login yet) which otherwise would be converted to January 1, 1970 when using the formatDateTime method.
creationTime is already reported in the full listing as a Unix timestamp number. I have some older users that have a zero creation time (that is from the past before this attribute was recorded). So adjusting the output format of login time and creation time is a separate issue - if someone thinks that there is a requirement/need for that.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You can’t perform that action at this time.
✕
Wait! Don't Go Yet 🚀
Get our FREE eBook "10 Programming Tips That Changed Everything" when you subscribe!
Description
The
user:list -aocc command now correctly displays user's creation time.Motivation and Context
User's creation time was not correctly returned when using the
-akey.How Has This Been Tested?
Manually. Before:
After:
Types of changes
Checklist: