@stefan85e Having Pytrack AND Wifi, you have two sources for the time:
a) a NTP server. For that you have to espablish an internet connection. Look at the documentation & examples for WiFi and Internet access, Section https://docs.pycom.io/chapter/tutorials/all/wlan.html, heading: "Connect to a router".
b) GPS. This is a little bit more tricky, since easy to use examples are missing. You can at least use the examples from thy Pytrack existing library and use that to derive the time information.