mirror of
https://github.com/vlang/v.git
synced 2025-08-03 17:57:59 -04:00
tools: fix show_manual_release_cmd.vsh, use .strftime(%V) for calculating the proper default week number
This commit is contained in:
parent
a65d5ae10f
commit
2054d46722
@ -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}'
|
||||
|
Loading…
x
Reference in New Issue
Block a user