You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in the very shell you intend to run `make term` in
91
+
- add `export TZ=":/etc/localtime"` to your `~/.profile`
92
+
- run `TZ=":/etc/localtime" make term`
93
+
94
+
The timezone can also be set at runtime by the application for both native and embedded devices using `setenv("TZ", <timezonestring>, 1)`. `picolibc` and `newlibc` expect `<timezonestring>` to have the form `NAME+/-hh:mm:ss<DST-handling>` (`+` pointing west -> `CET-1` adds 1 hour to UTC, see `man timezone`)
95
+
e.g., `ACST-9:30ACDT-10:30,M10.1.0,M4.1.0`.
96
+
If the `TZ`-string can not be interpreted by the used `libc` (`newlib`,`picolibc`,`glibc`),
97
+
they default back to `UTC`.
98
+
99
+
@warning Some things will behave faulty, since the assumption of most pkgs and
100
+
system modules is to run on a embedded system with no timezone set.
101
+
One often used function that respect timezone setting is `mktime`
102
+
80
103
# Known Issues
81
104
Check the list of open issues labeled native in the [github issue tracker](https://github.com/RIOT-OS/RIOT/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22Platform%3A%20native%22)
0 commit comments