public static function restore_tz() { if (self::$curr_tz !== null) { date_default_timezone_set(self::$curr_tz); self::$curr_tz = null; } }