mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
feat: add timezone to datetime display across the board
- the "Flagged Out-of-date on ..." link in the package action panel does not contain a timezone specifier. Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
e777b7052e
commit
1545eab81d
15 changed files with 47 additions and 41 deletions
|
@ -258,7 +258,7 @@ def check_package_details(content: str, pkg: Package) -> None:
|
|||
assert pop.text.strip() == number_format(0, 6)
|
||||
|
||||
# Check First Submitted
|
||||
date_fmt = "%Y-%m-%d %H:%M"
|
||||
date_fmt = "%Y-%m-%d %H:%M (%Z)"
|
||||
i += 1
|
||||
first_submitted = rows[i].xpath("./td")[0]
|
||||
converted_dt = as_timezone(to_dt(pkg.PackageBase.SubmittedTS), "UTC")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue