dirkjanm / ROADtools

A collection of Azure AD/Entra tools for offensive and defensive security purposes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dates are ordered alphabetically in GUI

emil-muller opened this issue · comments

Behavior:

Dates are ordered alphabetically in the GUI. See the below image. This is not useful or intuitive.
So far I have only encountered this in the OAuth2 Permissions tab, given that other places uses the format %Y-%m-%dT%H:%M:%S where lexicographical ordering is equivalent to chronological ordering.

image

Expected behavior

The dates should be ordered in a chronological fashion to improve the user experience and the utility of the tool.

I did a little bit of digging on this, it turns out that when you pass a datetime object to flask.jsonify, the format seen in the above picture is the default format. This can be fixed by parsing it to a string with the right format before jsonifying.