Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

I'm trying to change the default system date:

default phone.system.date = datetime.datetime(year=2023, day=13, month=7, hour=5, minute=1, second=2)

But I get a name error: date time is not defined?

the datetime module isn't included by default. you need to import it

ah, that makes sense! i saw "from datetime import datetime" just a little bit above but just doing

"init python:  import datetime"

at the top of the script worked. thanks!