Date in Unix format with GMT+0
-
Vikas
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 14
-
Thank you received: 0
-
-
7 years 4 months ago #6203
by Vikas
I want date in unix format with respect to GMT+0.
This is date of JSON received in article get.
"published_date":"2017-03-07 20:09:41",
This is date related with server time zone. In my case server and client time zones are not same. There can be mutilple clients in different zones, so it is not possible to match clients and server timeszones.
It will be great if JBackend gives dates in Unix format respect to GMT+0. I need to update article in local cache if it is outdated(download date is less than last modified date.)
I need following dates
1. Creation or publish date
2. Last modified date.
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
7 years 4 months ago #6207
by admin
Hi and thanks for reporting. The date is formatted with:
$item['published_date'] = JHtml::_('date', $article->publish_up, 'Y-m-d H:i:s');
But this is still the original code (2014), actually I think it would be better to return any date in ISO 8601. I will fix this in the next version.
Kind regards,
Luigi
Please Log in or Create an account to join the conversation.
-
Vikas
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 14
-
Thank you received: 0
-
-
7 years 4 months ago #6208
by Vikas
Thanks.
I can convert ISO date to unix timestamp.
Do you plan return last modified datetime also? Otherwise there is no way to know if article in local is outdated or not.
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
7 years 4 months ago #6209
by admin
I already done it. If you send me a mail at info(at)selfget.com I can send you the latest version so you can help me to test it
Please Log in or Create an account to join the conversation.
-
Vikas
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 14
-
Thank you received: 0
-
-
7 years 4 months ago #6210
by Vikas
Thanks, I shall update my joomla and jbackend when you release ISO formatted dates.
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
7 years 4 months ago #6211
by admin
I have no date planned for release, but (I repeat) if you need it now just send me a PM.
Kind regards
Please Log in or Create an account to join the conversation.
Time to create page: 0.144 seconds