Skip to content

Commit

Permalink
Fix bad date format for datetimeutc field (#429)
Browse files Browse the repository at this point in the history
Fix "minutes" in datetimeutc column of CSV export

Co-authored-by: Denis Laxalde <denis.laxalde@dalibo.com>
  • Loading branch information
adevathaire and dlax authored Dec 2, 2024
1 parent 0b13bc9 commit 87f0cc6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
### Fixed

* Fix configuration of the color of `appname` column (#415).
* Fix `datetimeutc` column in CSV export showing wrong "minutes" value (#429).

### Changed

Expand Down
2 changes: 1 addition & 1 deletion pgactivity/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ def yn_na(value: bool | None) -> str:
return yn(value)

for p in procs:
dt = datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%m:%SZ")
dt = datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ")
pid = p.get("pid", "N/A")
database = p.get("database", "N/A") or ""
appname = p.get("application_name", "N/A")
Expand Down

0 comments on commit 87f0cc6

Please sign in to comment.