Closed tranq2 closed 3 years ago
Finally managed to sort this as follows using some utils in the berserk package tourney_date = datetime(2021, 3, 9, 18, 00, 000) tourney_date_millis = berserk.utils.to_millis(tourney_date) tourney_date_int = int(tourney_date_millis) tourney_date_string = str(tourney_date_int)
and pass tourney_date_string in to tournament create call
Description
I am trying to create a future dated tournament. I am having trouble passing a date. I have created a future date using date_time, converted it to timestamp, then cast to integer and string. The call fails saying the date is not in the future.
Love the work being done here with Berserk BTW and I am also new to Python so apologies if i have missed something obvious ...
What I Did
this was run on 31/1/21
relevant code fragments as follows