# \#time

**URL:** https://forums.balena.io/tag/time/83.md

[Latest](https://forums.balena.io/latest.md) · [Categories](https://forums.balena.io/categories.md) · [Tags](https://forums.balena.io/tags.md)

---

## [Configure HostOS chrony from inside a container using chronyc and a mounted chrony socket](https://forums.balena.io/t/configure-hostos-chrony-from-inside-a-container-using-chronyc-and-a-mounted-chrony-socket/368055)

<div class="topic-metadata">

**Author:** [@rapha](https://forums.balena.io/u/rapha)\
**Replies:** 7\
**Last updated:** [October 11, 2024, 5:25pm UTC](https://forums.balena.io/t/configure-hostos-chrony-from-inside-a-container-using-chronyc-and-a-mounted-chrony-socket/368055 "2024-10-11T17:25:28Z")

</div>

We are operating on an air-gapped network and on devices that may be unpowered for a while. They do not have an RTC with battery. We are discovering a NTP server using Avahi from within a container and would like to con…

---

## [System date not updating on startup](https://forums.balena.io/t/system-date-not-updating-on-startup/169943)

<div class="topic-metadata">

**Author:** [@RT\_Phil](https://forums.balena.io/u/RT_Phil)\
**Replies:** 6\
**Last updated:** [April 3, 2024, 7:01pm UTC](https://forums.balena.io/t/system-date-not-updating-on-startup/169943 "2024-04-03T19:01:55Z")

</div>

I’m running into an issue where the timestamp is incorrect when the system starts up. I am running on a setup where the machine could be off for days at a time. Its internet connection is via a USB hotspot that is powere…

---

## [Disabling HTTPS Time Synchronization](https://forums.balena.io/t/disabling-https-time-synchronization/369890)

<div class="topic-metadata">

**Author:** [@Agenda](https://forums.balena.io/u/Agenda)\
**Replies:** 1\
**Last updated:** [February 12, 2024, 1:42pm UTC](https://forums.balena.io/t/disabling-https-time-synchronization/369890 "2024-02-12T13:42:39Z")

</div>

Hello folks. Main objective Get device to synchronize time on a restrictive network with only NTP access. I’m attempting to disable the HTTPS time synchronization (timesync-https.service) on my Balena device to preven…

---

## [Get IP address / Timezone when using Proxy](https://forums.balena.io/t/get-ip-address-timezone-when-using-proxy/360886)

<div class="topic-metadata">

**Author:** [@tzachiz](https://forums.balena.io/u/tzachiz)\
**Replies:** 3\
**Last updated:** [August 22, 2022, 9:31pm UTC](https://forums.balena.io/t/get-ip-address-timezone-when-using-proxy/360886 "2022-08-22T21:31:53Z")

</div>

hi, we are using a proxy for all of spread Balena systems. i need to know every machine timezone in order to run certain things on certain hours of the day. when i try to translate the Local IP Address or the Public I…

---

## [Manually use the \`timesync-https\` service?](https://forums.balena.io/t/manually-use-the-timesync-https-service/353223)

<div class="topic-metadata">

**Author:** [@Verigo\_Tommy](https://forums.balena.io/u/Verigo_Tommy)\
**Replies:** 1\
**Last updated:** [February 28, 2022, 12:22pm UTC](https://forums.balena.io/t/manually-use-the-timesync-https-service/353223 "2022-02-28T12:22:08Z")

</div>

Hello, I saw that recently a new timesync-https service was added to handle updating the system time from an HTTPS service (e.g. in case NTP isn’t working). Here’s the pull request that added it: systemd/timeinit: add H…

---

## [Setting timezone from IP address](https://forums.balena.io/t/setting-timezone-from-ip-address/350814)

<div class="topic-metadata">

**Author:** [@krix](https://forums.balena.io/u/krix)\
**Replies:** 2\
**Last updated:** [January 6, 2022, 6:29am UTC](https://forums.balena.io/t/setting-timezone-from-ip-address/350814 "2022-01-06T06:29:39Z")

</div>

I would like to set the device timezone and default to an “auto” mode, where location is based on IP address. I assume this is what Balena cloud already does when it shows device location. Can this information be achie…

---

## [Chronyc config is bad if device comes online without internet](https://forums.balena.io/t/chronyc-config-is-bad-if-device-comes-online-without-internet/190941)

<div class="topic-metadata">

**Author:** [@anathan84](https://forums.balena.io/u/anathan84)\
**Replies:** 24\
**Last updated:** [December 21, 2021, 9:43pm UTC](https://forums.balena.io/t/chronyc-config-is-bad-if-device-comes-online-without-internet/190941 "2021-12-21T21:43:16Z")

</div>

Our devices don’t always have internet on first power up, the reason being the upstream router takes a few minutes to boot up. This seems to cause a conflict with the latest setting of chronyc which attempt to sync "agg…

---

## [Can't manually set system time](https://forums.balena.io/t/cant-manually-set-system-time/328989)

<div class="topic-metadata">

**Author:** [@Verigo\_Tommy](https://forums.balena.io/u/Verigo_Tommy)\
**Replies:** 5\
**Last updated:** [June 25, 2021, 8:14pm UTC](https://forums.balena.io/t/cant-manually-set-system-time/328989 "2021-06-25T20:14:28Z")

</div>

Hello, Some customers run our devices behind very restrictive firewalls that block access to NTP servers. This unfortunately means that the devices can’t do their normal time synchronization routine. As a workaround, i…

---

## [Timezone Troubles](https://forums.balena.io/t/timezone-troubles/122430)

<div class="topic-metadata">

**Author:** [@henryh](https://forums.balena.io/u/henryh)\
**Replies:** 9\
**Last updated:** [April 1, 2021, 4:06pm UTC](https://forums.balena.io/t/timezone-troubles/122430 "2021-04-01T16:06:10Z")

</div>

I’ve been trying to setup timezones but it does not seem to work. Following this, I tried creating an environment variable “TIMEZONE” with value “Europe/Berlin”. That did not seem to have any effect. It feels like a rea…

---

## [device reboot without loosing time sync?](https://forums.balena.io/t/device-reboot-without-loosing-time-sync/219208)

<div class="topic-metadata">

**Author:** [@tibhel](https://forums.balena.io/u/tibhel)\
**Replies:** 5\
**Last updated:** [December 10, 2020, 7:55am UTC](https://forums.balena.io/t/device-reboot-without-loosing-time-sync/219208 "2020-12-10T07:55:12Z")

</div>

Hi, I am trying to implement a fail-safe systemd service that checks for internet connection and restarts the cellular modem (GPIO) and ModemManager if something fails. However most of the time a full system reboot is t…

---

## [Check if device has synced time since last boot](https://forums.balena.io/t/check-if-device-has-synced-time-since-last-boot/215060)

<div class="topic-metadata">

**Author:** [@tibhel](https://forums.balena.io/u/tibhel)\
**Replies:** 6\
**Last updated:** [November 30, 2020, 2:49pm UTC](https://forums.balena.io/t/check-if-device-has-synced-time-since-last-boot/215060 "2020-11-30T14:49:48Z")

</div>

Hi, I am trying to fix the following problem: If a device is down for x hours due to power cutoff and then boots up when the power is up, it takes some minutes to get internet up and time synced with chronyc. I am usin…

---

## [Manually Setting the System Clock](https://forums.balena.io/t/manually-setting-the-system-clock/93319)

<div class="topic-metadata">

**Author:** [@AdamLee](https://forums.balena.io/u/AdamLee)\
**Replies:** 9\
**Last updated:** [April 23, 2020, 8:23pm UTC](https://forums.balena.io/t/manually-setting-the-system-clock/93319 "2020-04-23T20:23:41Z")

</div>

On one of our devices we are allowing users to manually adjust the system time. This is because we expect that a majority of the time we wonn’t have internet connectivity. What we did was implement an endpoint in one of…

---

## [Problems with Time management](https://forums.balena.io/t/problems-with-time-management/5345)

<div class="topic-metadata">

**Author:** [@cristiangutie](https://forums.balena.io/u/cristiangutie)\
**Replies:** 4\
**Last updated:** [February 20, 2019, 1:51pm UTC](https://forums.balena.io/t/problems-with-time-management/5345 "2019-02-20T13:51:49Z")

</div>

Hi all, its my first time using balena and im having a lot of troubles setting time in my devices. I 've read Time management docs without luck. For example, the doc say “Balena devices make use of the systemd-timesyncd …

---

## [Changing date/time on the device](https://forums.balena.io/t/changing-date-time-on-the-device/2089)

<div class="topic-metadata">

**Author:** [@bradstewart](https://forums.balena.io/u/bradstewart)\
**Replies:** 2\
**Last updated:** [October 30, 2017, 6:24pm UTC](https://forums.balena.io/t/changing-date-time-on-the-device/2089 "2017-10-30T18:24:39Z")

</div>

How would I go about changing the system date from inside my container? I have a lot of time-dependent code, and changing the system time is the easiest way to test things. date -s "27 OCT 2017 7:44:00" doesn’t persist. …

---

## [Timezone setting in Alpine images](https://forums.balena.io/t/timezone-setting-in-alpine-images/1486)

<div class="topic-metadata">

**Author:** [@Tristan107](https://forums.balena.io/u/Tristan107)\
**Replies:** 13\
**Last updated:** [July 26, 2017, 4:30pm UTC](https://forums.balena.io/t/timezone-setting-in-alpine-images/1486 "2017-07-26T16:30:04Z")

</div>

Hi, what would be the setup when your base image is resin-alpine-based ? Here an extract of my Dockerfile which follows the alpine doc and which doesn't work with FROM "resin/%%RESIN\_MACHINE\_NAME%%-alpine-node:7-sl…
