Skip to content

Commit

Permalink
FIX(cv_tag_v3): Format datetime with padding 0
Browse files Browse the repository at this point in the history
  • Loading branch information
chetryan committed Nov 1, 2023
1 parent 855b8b6 commit d000c66
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def tasker(self, tags: list, mode: string, auto_create: bool = True):

# create workspace
my_date = datetime.now()
datetime_string = str(my_date.year)+str(my_date.month)+str(my_date.day)+'_'+str(my_date.hour)+str(my_date.minute)+str(my_date.second)
datetime_string = my_date.strftime('%Y%m%d_%H%M%S')
workspace_name_id = "AW_" + ''.join(random.choices(string.ascii_uppercase + string.digits, k=6)) + datetime_string
workspace_id = workspace_name_id

Expand Down

0 comments on commit d000c66

Please sign in to comment.