Clock is an hour slow. Can't find ntp or time setting. Docs are outdated?

Hello.

I can’t figure out how to set the time on my HA server. It’s running on an x86_64 pc and I installed using the documentation by imaging to an SSD directly from another pc.

My timezone is set correctly, and the system should be able to reach the ntp servers that I’m reading are set by default.

I can’t check to see what is set by default because the SSH/Terminal addon doesn’t give me access to the HA OS, but it connects to the host OS, and I can’t connect to 22222 via ssh, so I can’t check the config.

Surely there is a way to configure and test NTP and/or set the date/time, right?

image

What is your timezone?

What is timezone set to in settings|system|general?

Can you execute date -s

Thanks. Sorry for the delay. Been out of town.

My timezone is Eastern (or New York), and that is what it’s set to. GMT-5:00, same as my PC.

I Can’t do date -s. It tells me “operation not permitted,” even if I run it as root.

What is the actual setting? Gmt-5:00 or new york

Hello fellow New Yorker.

I’ve always have set my time/date in configuration.yaml. Why you may ask. Because my configuration pre-dates the frontend GUI config of time/date/local.

It may be worth it to try adding it manually to the config.

This is what I have in my configuration:

homeassistant:
  # Name of the location where Home Assistant is running
  name: Home
  # Location required to calculate the time the sun rises and sets
  latitude: 41.6178
  longitude: -74.106
  # Impacts weather/sunrise data (altitude above sea level in meters)
  elevation: 172
  # metric for Metric, imperial for Imperial
  unit_system: imperial
  temperature_unit: F
  currency: "USD"
  # Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
  time_zone: America/New_York

Note. once you set it in configuration.yaml you well no longer be able to set it in the frontend. The GUI well show:
ha-TD-Capture

Hope it helps.

Thank you. I’m giving it a shot.
image
It didn’t help immediately, but I’ve restarted and I’ll give it time for NTP to catch up.
At least this way I’ll know the timezone is set correctly. Since the values in the UI did get grayed out, as you mentioned, I’m confident that the correct timezone value is being used.

The other thing is to check what your bios says the time is. If the RTC is off by an hour, the computer will start an hour out. NTP is not designed for moving the computer time by large chunks like an hour. Check your bios.

Thank you, but the bios time is correct.