ZoneMinder / zmeventnotification

Machine Learning powered Secure Websocket & MQTT based ZoneMinder event notification server
412 stars 128 forks source link

Notifications on IOS show AM/PM instead of 24hrs as set in zmninja #202

Closed pcdiks closed 4 years ago

pcdiks commented 4 years ago

Before you create an issue, please make sure you have read the FAQ. Common questions on API, no image etc are covered there. Please also read HOWTO REPORT ISSUES

Platform & OS Version

IOS 13.3

The version of zmNinja you are reporting:

zmNinja 1.3.087

The version and OS of ZoneMinder you are using:

1.34.0, Ubuntu 1.04

Device details:

iPhone 11 Pro

What is the nature of your issue

Notifications about zoneminder events show the time in AM/PM format instead of 24hrs format as set in the application.

Thanks!

pliablepixels commented 4 years ago

Yup what you set in zmNinja is only for the zmNinja app. Notifications are delivered by the ES, which doesn't know these settings. I'll add a config parameter to zmeventnotification.ini for this.

pliablepixels commented 4 years ago

I am going to transfer this to the event server project as it will be a setting there.

pliablepixels commented 4 years ago

@pcdiks please grab the latest zmeventnotification.pl and replace /usr/bin/zmeventnotification.pl. You can then add a date_format string in the ini file. See the commit above for details.

pcdiks commented 4 years ago

I replaced the zmeventnotification.pl and it now shows the time in 24hrs format. Thanks for that. I also saw that the notification now also contains a picture! This a great feature with my Apple Watch!