Incus containers and fallback timezone

Hi Guys,

I have question regarding incus containers and the system concerning timezone. I have a couple of applications like nextcloud memories and odoo that is using the wrong timestamps.

I configured the timezone on the host and inside the container. Is the some other setting that i need to sed for the timezone? (fallbacktimezone?)

kind regards,

Chris

The container gets by default a generic timezone unless you specify it in your Incus profile. By doing so, all containers should get the same proper timezone.

Perhaps some images have support for guessing the timezone based on the IP address. While desktop operating systems do that, I think most containers expect an explicit timezone.

What does datetimectl show in the container?

hi @simos

this is the output:

timedatectl
Local time: Sun 2024-08-04 00:39:40 CEST
Universal time: Sat 2024-08-03 22:39:40 UTC
RTC time: n/a
Time zone: Europe/Amsterdam (CEST, +0200)
System clock synchronized: yes
NTP service: n/a
RTC in local TZ: no

Time zone is correct. with the app memories (from nextcloud) its always falling back on utc time for some reason.

If there is no other setting for the containers i think its a bug in that app? However someone else installed it in docker and docker was causing the issue for the timestamp to be 2 hours off. I thought that maybe something alike was goning in with incus.

I know nothing about nextcloud, but I do know that PHP has its own settings for timezone, typically in a file such as

/etc/php/8.0/apache2/php.ini
/etc/php/8.0/cli/php.ini

where you can set something like

[Date]
date.timezone = Etc/UTC

Indeed.

I know this and these settings are also ok.