Skip to content

two small inconsistencies related to timezone problem #2160

Description

@berwag

openhabian.conf, line 5

The comment line 5 of openhabian.conf says:
# This file will only be used on unattended initial install.

This is misleading. openhabian.conf is also sourced by openhabian-setup.sh in line 45.
Omitting to configure timezone (even in attended install) in openhabian.conf may lead to wrong timezone taken by system.bash, line 102.

Please delete or amend line 5 of openhabian.conf.

system.bash, line 100-102

The intention here is to set timezone based on user's choice.
The comment in line 100
# tz sources order: 1) /etc/openhabian.conf 2) /etc/timezone 3) default UTC
contradicts to that. case 1) should be omitted and line 101 adapted accordingly, e.g.:
timezone=$(cat /etc/timezone 2>/dev/null)

These two inconsistencies gave rise to problems of type
[https://github.com//issues/1973]
for me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions