Time APIInternally Moodle always stores all times in unixtime format, which is a format independent of timezones.