gisce / iec870ree

IEC-870-5-102 for REE Spanish Electric meters
GNU Affero General Public License v3.0
13 stars 11 forks source link

Ability to change time zone #19

Open eamanu opened 4 years ago

eamanu commented 4 years ago

Hello,

Could be possible add some method to be variable and seteable the TIMEZONE variable [0]? For the use on different timezone on an application, we need convert the time to a local (or UTC) timezone and that is a little noisy. So, IMHO the logic must be in the module/library, to be more clear on the 3rd party applications.

If there aren't objetion I can prepare a patch.

[0] https://github.com/gisce/iec870ree/blob/master/iec870ree/app_asdu.py#L10

tinogis commented 3 years ago

No objection if you prepare the patch