Comments (3)
I'm swamped right now with other things but will try to look into this later this week. TZ is indeed handled by the underlying toolchain.
from firmware.
I have a funny feeling that I've seen the same behavior on my devices.
As far as I'm aware, the time zones are handled at a deeper layer than the Meshtastic code, using platform specific implementations of tzset()
, time()
, gmtime()
. It seems like the version the T-Echo is built with might have an issue with the tm:tm_isdt()
function?
I'm not sure what the options to correct / mitigate might be.
It'd be good to hear what @caveman99 thinks of the situation; I know he's worked with these functions before and probably has much better insight here.
from firmware.
I did indeed find the problem. I just didn't realize how much trouble it would be to fix. We don't actually set the system time. It always starts at the epoch, then we add an offset. So there's no date for tzset() to use to figure out DST.
Edit: it was actually a really simple fix. Just grab the real timestamp to use to calculate the offset.
from firmware.
Related Issues (20)
- [Bug]: ESP32-S3 Boards with Native USB Not Booting without USB Host Serial HOT 7
- Nano G2 Ultra doesn't shows direct message HOT 2
- [Feature Request]: Root topic by channel or similar solution … HOT 5
- [Bug]: When trrying to compile rak11310 it errors out. HOT 1
- [Feature Request]: add trackerd to CI/CD compilation
- [Feature Request]: Stronger cryptographic guarantees and discussion of threat model
- [Bug]: Lillygo T-Lora T3S3 stuck in reboot un update HOT 1
- [Bug]: missing integrity checks let attacker forge arbitrary message content using a known plaintext attack and replaying messages even when PSK is not known HOT 4
- [Bug]: nonces are only randomized with 31 bits, this make it rare but possible to see duplicated nonces in the wild threatening confidentiality of messages HOT 3
- [Bug]: Screen reverting back to last message after setFrame reload HOT 6
- [Bug]: rak4631 no lock on GPS results in shutdown at first position broadcast interval HOT 2
- [Bug]: Telemetry Module Issues BME680 on Heltec V3 HOT 3
- [Bug]: MQTT messages bug on Android and WWW
- [Bug]: Altitude problems in Android app and in MQTT HOT 3
- [Bug]: [RadioIf] Can not send yet, busyRx HOT 7
- [Bug]: uBlox M10 GPS doesn't sleep if device is switched off HOT 4
- Mystery led flashing after upgrade to ver 2.3.11 [Bug]: HOT 13
- [Bug]: WiFi MQTT Not Working After Enabling Bluetooth MQTT Proxy on Phone HOT 7
- [Bug]: heltec-wsl-v3 / can't compile - ButtonThread.cpp.o HOT 2
- [Bug]: Odd behavior of GPS HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from firmware.