[Solved] Date/time not progressing?
Posted: Thu May 09, 2019 7:39 am
I have this code:
And:
It was working normally before, but now time/date is not progressing at all. The weird thing is that I really didn't change anything in this code.
A lot of things on my game are based on the weekday, date, hour, etc and it doesn't "refresh"/progress unless you restart your phone.
Does anyone know what can be causing it?
Thanks.
Code: Select all
init:
$ import time
$ year, month, day, hour, minute, second, dow, doy, dst = time.localtime()
# dow = day of the week (Monday is 0 and Sunday is 6), doy = day of the year, dst = daylight saving time.
$ downames = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]
$ todays = downames[(dow%7)]
$ monthnames = ["December", "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November" ]
$ months = monthnames[(month%12)]Code: Select all
screen timedaymonth:
text "{size=28}[month]/[day]{/size}" xpos 635 ypos 0 A lot of things on my game are based on the weekday, date, hour, etc and it doesn't "refresh"/progress unless you restart your phone.
Does anyone know what can be causing it?
Thanks.