about summary refs log tree commit diff
path: root/pkgs/servers/invidious
diff options
context:
space:
mode:
authorschnusch <schnusch@users.noreply.github.com>2022-04-12 14:30:47 +0200
committerschnusch <schnusch@users.noreply.github.com>2022-05-16 23:12:09 +0200
commit0369625a8225d1734a617f3e39144bc8666c00b3 (patch)
tree43ac41fa2998d9a19d08f4c9bc4f647a5820e8dc /pkgs/servers/invidious
parent9a1264cab0c050355dbf787bd595ee37188d1b33 (diff)
invidious: use UTC for version in update script
Previously the commits timezone was used for the date in the version.
This turned out to be wrong for https://github.com/iv-org/invidious/commit/1f3f2788d4ab6ee4fc96c73c5e78900a9edcfec3
See https://github.com/NixOS/nixpkgs/commit/104e4643c52a7fb418721f1c254a34b8862cac5f
Diffstat (limited to 'pkgs/servers/invidious')
-rwxr-xr-xpkgs/servers/invidious/update.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/servers/invidious/update.sh b/pkgs/servers/invidious/update.sh
index 580d6136388a9..bf43fbb4b3653 100755
--- a/pkgs/servers/invidious/update.sh
+++ b/pkgs/servers/invidious/update.sh
@@ -41,7 +41,7 @@ git -C "$git_dir" fetch origin "$git_branch"
 # because there might still be commits coming
 # use the day of the latest commit we picked as version
 new_rev=$(git -C "$git_dir" log -n 1 --format='format:%H' --before="${today}T00:00:00Z" "origin/$git_branch")
-new_version="unstable-$(git -C "$git_dir" log -n 1 --format='format:%cs' "$new_rev")"
+new_version="unstable-$(TZ=UTC git -C "$git_dir" log -n 1 --date='format-local:%Y-%m-%d' --format='%cd' "$new_rev")"
 info "latest commit before $today: $new_rev"
 
 if [ "$new_rev" = "$old_rev" ]; then