omni-lchen / zabbix-cloudwatch

71 stars 61 forks source link

Can you add support for accepting the time in EST time zone. #12

Closed macadminrohit closed 7 years ago

macadminrohit commented 7 years ago

Currently the script accepts time in UTC as EC2 instance on which the scripts are running in UTC. Our zabbix server is in EST and we want to pass the EST time to the script and get the data from cloudwatch for that particular time. Can you do that?

omni-lchen commented 7 years ago

@bsingr has added UTC to local timestamp support, appreciate his contribution. I just amended the script to convert the timestamp when no cloudwatch data received, please re-test the new script, you also need to install python dateutil module.