Hi
when i use the command dz.data.stat_xxxx.add and i check the date in the data persistent file, i have this
["xxxx"] = {
[1] = {
["time"] = "2025-1-7 19:30:0.343";
["data"] = "blabla";
};
the problem is the time must be 20:30 and not 19:30
my rpi and container docker are at the right time
Could you check your time in data persistent file?
Pierrotori
date in the data persistent
Moderators: leecollings, remb0
Forum rules
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.
Use the following template when posting here:
Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....
If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly
If you are replying, please do not quote images/code from the first post
Please mark your topic as Solved when the problem is solved.
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.
Use the following template when posting here:
Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....
If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly
If you are replying, please do not quote images/code from the first post
Please mark your topic as Solved when the problem is solved.
- pierrotori
- Posts: 118
- Joined: Tuesday 15 May 2018 0:08
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.4
- Location: France
- Contact:
date in the data persistent
rpi : Raspberry Pi 2 Model B Rev 1.1 / Modele : Cortex-A7 armv7l GNU/Linux / Os Name : bullseye
Docker/Domoticz/zwave-ui/homebridge/mosquitto/wireguard
Docker/Domoticz/zwave-ui/homebridge/mosquitto/wireguard
- waltervl
- Posts: 5853
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: date in the data persistent
Why is it a problem?
It probably is UTC time that is stored in the file as that is common practice.
It probably is UTC time that is stored in the file as that is common practice.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
- pierrotori
- Posts: 118
- Joined: Tuesday 15 May 2018 0:08
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.4
- Location: France
- Contact:
Re: date in the data persistent
i have a delta of 2 hours with the new version
["mesure"] = {
[1] = {
["time"] = "2025-6-12 19:15:2.427";
["data"] = 1;
};
in the docker-compose i put TZ=Europe/Paris and the date in the container is up
and the date in the container
root@af0c9761cdcc:/opt/domoticz# date
Thu Jun 12 21:15:09 CEST 2025
i would like to have the same date in the data persistent and the date system
["mesure"] = {
[1] = {
["time"] = "2025-6-12 19:15:2.427";
["data"] = 1;
};
in the docker-compose i put TZ=Europe/Paris and the date in the container is up
and the date in the container
root@af0c9761cdcc:/opt/domoticz# date
Thu Jun 12 21:15:09 CEST 2025
i would like to have the same date in the data persistent and the date system
rpi : Raspberry Pi 2 Model B Rev 1.1 / Modele : Cortex-A7 armv7l GNU/Linux / Os Name : bullseye
Docker/Domoticz/zwave-ui/homebridge/mosquitto/wireguard
Docker/Domoticz/zwave-ui/homebridge/mosquitto/wireguard
- waltervl
- Posts: 5853
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: date in the data persistent
Then you probably have to write a persistent file yourself.
Why do you want the exact correct time in that file? As it is possibly not designed to have the exact time in that file but the UTC time. The time in that file is only needed to calculate time differences to manage the size of data fields
Why do you want the exact correct time in that file? As it is possibly not designed to have the exact time in that file but the UTC time. The time in that file is only needed to calculate time differences to manage the size of data fields
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Who is online
Users browsing this forum: No registered users and 1 guest