mirror of
https://github.com/vlang/v.git
synced 2025-08-04 02:07:28 -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 os
|
||||||
import time
|
import time
|
||||||
import math
|
|
||||||
import term
|
import term
|
||||||
|
|
||||||
now := time.now()
|
now := time.now()
|
||||||
year := now.year
|
year := now.year
|
||||||
week := int(math.ceil(f64(now.year_day()) / 7.0))
|
week := now.strftime('%V')
|
||||||
|
|
||||||
mut remote_name := 'origin'
|
mut remote_name := 'origin'
|
||||||
mut release_tag := 'weekly.${year:04}.${week:02}'
|
mut release_tag := 'weekly.${year:04}.${week:02}'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user