Timezone#
Use the following Linux command to display the current time:
!date
Wed 08 Dec 2021 03:22:22 PM PST
If it’s not correct, it’s easy to change. First, find the correct timezone from this list.
In /service-config/iot-home/.env49rc
, uncomment the line starting with # export TZ= ...
and set the correct value.
!cat /service-config/iot-home/.env49rc
#! /bin/bash
# /service-config/iot-home/.env49rc
# Modify entries below to customize the ide49 environment
# Local dns name; access device as $DNS_NAME.local
# export DNS_NAME=iot49
# ide49 file locations
# export IOT=/home/iot
# export IOT_PROJECTS=/home/iot/projects
# time zone
# export TZ=America/Los_Angeles
# samba configuration
# valid entries for $SAMBA are server / client / off (default)
# export SAMBA=off
# export SAMBA_SERVER_IP=10.39.40.200"
# export SAMBA_PASSWORD="my_super_secret_password_px&(734%3#ksf"
Note: The Jupyter editor refuses to open that file. Use Visual Studio Code or nano
(from the terminal) instead.
If you did a custom install, you can alternatively change the value of fleet variable TZ
in the Balena dashboard.