tools: fix show_manual_release_cmd.vsh, use .strftime(%V) for calculating the proper default week number

This commit is contained in:
Delyan Angelov 2025-02-11 10:19:46 +02:00
parent a65d5ae10f
commit 2054d46722
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -1,11 +1,10 @@
import os
import time
import math
import term
now := time.now()
year := now.year
week := int(math.ceil(f64(now.year_day()) / 7.0))
week := now.strftime('%V')
mut remote_name := 'origin'
mut release_tag := 'weekly.${year:04}.${week:02}'