tasmota / decode-config

Backup/restore and decode configuration tool for Tasmota
GNU Lesser General Public License v3.0
211 stars 32 forks source link

Command option - TimeZone command is not proper #66

Closed jkwim closed 1 year ago

jkwim commented 1 year ago

Describe the bug

When the timezone has a minute componet: JSON dump shows two parameters but Timezone command omits the minute component and shows only the hours.

To Reproduce

Steps to reproduce the behavior:

1.

ubuntu@ubuntu:~/tasmota/configs$ decode-config.py -s $deviceip --ignore-warnings | jq

  "timezone": 5,
  "timezone_minutes": 30,
  "toffset": [
    60,
    120
  ],

2.

ubuntu@ubuntu:~/tasmota/configs$ decode-config.py -s $deviceip --ignore-warnings -T command | grep -i time

  Time 1
  TimeDST 0,0,3,1,2,120
  TimeSTD 0,0,10,1,3,60
  Timezone 5

Expected behavior

The timezone command should be:

Timezone +05.30

Version Information

Please complete the following information
use decode-config.py -V to retrieve the info

decode-config.py v12.3.1.0 [728642d] by Norbert Richter nr@prsolution.eu

Script:   decode-config.py
Version:  12.3.1.0 [728642d]
Python:   3.8.10
Platform: Linux-5.4.0-1078-raspi-aarch64-with-glibc2.29 - aarch64
OS:       Linux 5.4.0-1078-raspi #89-Ubuntu SMP PREEMPT Mon Dec 5 08:38:35 UTC 2022
Time:     2023-01-16 22:01:59

System' information of your Tasmota data

Append -g System to your decode-config parameter, e. g. decode-config.py -s myconfig.dmp -g System


>>> paste output here <<<

Additional context

Add any other context about the problem here.