× Requests and support related to jBackend.

issue with create notifications for devices

More
6 years 2 months ago #6869 by mhehm
Hi, i updated jbackend to latest version 3.8.0 but i can not crate notification from jbackend notification menu
in jbackend 3.8.0 you said that this issue is fixed (Fixed an issue with create notifications for devices;)
but i have problem yet

Please Log in or Create an account to join the conversation.

More
6 years 2 months ago #6877 by admin
Hi,
I have just created a notification on a 3.8.0 (see image in annex).



Can you specify what problems are you facing?

Kind regards,
Luigi
Attachments:

Please Log in or Create an account to join the conversation.

More
6 years 2 months ago #6889 by mhehm
I tested now and i could. but it seems that time that i choosed for notification is different from time that i see in notifications list.
maybe it is because of timestap

Please Log in or Create an account to join the conversation.

More
6 years 2 months ago - 6 years 2 months ago #6891 by admin
Hi
the scheduled time is managed as DATETIME on MySQL like the created and modified date of an article, so there is no information about the timezone.

The query that selects the notification to push compares the dates like this:
$nowDate = JFactory::getDate()->toSql();
...
->where('(`scheduled_time` <= ' . $db->quote($nowDate) . ') ...

So the $nowDate is the current date and time in the server timezone. This means that you should select the scheduled time in the server timezone.

It would have been better to support the schedulation dates in ISO-8601 format with full timezone support, but I initially implemented it in "the Joomla way", and figured out this issue too late.

Kind regards
Luigi
Last edit: 6 years 2 months ago by admin.

Please Log in or Create an account to join the conversation.

Time to create page: 0.288 seconds