Mainsail and Klipper logs show time as UTC

Basic Information:

klippy.log (1.3 MB)

Printer Model: Ender 3
MCU / Printerboard: SKR Mini E3 V3
Host / SBC: RPI 3b
klippy.log

Fill out above information and in all cases attach your klippy.log file (use zip to compress it, if too big). Pasting your printer.cfg is not needed
Be sure to check our “Knowledge Base” Category first. Most relevant items, e.g. error messages, are covered there

Describe your issue:

…Mainsail time and Klipper logs show UTC time not local time. System (Windows 11) and Chrome browser display local time. How to fix this?

Just set Windows time zone to UTC. :grinning_face_with_smiling_eyes:

or

set the time zone of the

to your local time zone

I never paid it much attention but now that I look:
SBC is set to UTC
Klipperscreen also displays UTC
Fluidd and Mainsail both (Win11 + DuckDuckGo Browser) display local time (UTC-8)

If you wish to set your Host to local time this may help:
https://www.cyberciti.biz/faq/find-checking-timezone-in-linux-using-command-line/

I did set it via SSH to my time zone which is the same as my system. Cuurently my timezone i Americas/Toronto ET. Sytem and Chrome show time as 3:30 PM while Mainsail displays time as 8:30 PM. I have gone through the sudo raspi-config several times as well as checked and rechecked my system time settings. RPI ‘timedatectl’ result: Local time: Mon 2026-02-09 15:19:14 EST
Universal time: Mon 2026-02-09 20:19:14 UTC
RTC time: n/a
Time zone: America/Toronto (EST, -0500)
System clock synchronized: yes
NTP service: n/a
RTC in local TZ: no

Update: I have installed NTP service and rebooted the RPI which resulted in No Change in time discrepancy.

Question: Is it necessary to have an RTC installed on the RPI?

I think yes. The file system, for one, timestamps everything.

I think the way linux is setup, all systems everywhere actually run UTC. The time zone offset comes into play for “Human readable” outputs. Point is Klipper copies the system time into the log. Adding a subtraction operation to every time stamp seems silly.

I think it makes sense when the Pi has no connection to the Internet.
Usually at every startup, the OS gets the actual time from the net.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.