Wrong Date/Time in Email Notification

More
11 years 11 months ago #37960 by brandonking
Hello,

Both creation and modification time are not correct in email notification.
When I check them in backend, all date/time are displayed correctly.
creation time: 2013/06/26 03:38
modification time: 2013/06-26 03:59

But, in the notification email are:
creation time: 2013-06-25 18:38:34
modification time: 2013-06-25 18:59:38

Regards,

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

More
11 years 11 months ago #37961 by ggppdk
Hello,
so the email notification includes UTC times instead of local times ?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

More
11 years 11 months ago #37963 by brandonking
Not sure this time is in UTC but definitely not local time.

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

More
11 years 11 months ago #37966 by ggppdk
OK, just getting more information,

a. We create 2 date objects
- for creation time and modification time)
with timezone set to site's timezone

b. Then we call on the them
(in file fc_backend_folder/models/parentclassitem.php)
Code:
->toformat()
which by default prints UTC+0 (in J1.5 it prints local time)

-- I ll change the call to be:
Code:
->format($format = D, d M Y H:i:s', $local = true)
(a) This way dates will be printed in the timezone that the date object has
... which is the site's timezone
(b) we will append to it a "UTC+N" e.g. UCT+5 to make it clear

-- NOTE: since emails are retrieved from the Joomla user table so one could say to send one email per timezone of receivers, but let's fix a bug not start adding features (at least not now)


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

More
11 years 11 months ago #37970 by brandonking

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

More
11 years 11 months ago #37977 by ggppdk
Hello,
this file

[url=http://flexicontent.googlecode.com/svn/trunk/com_flexicontent_v2.x/admin/models/parentclassitem.php
]administator/component_com_flexicontent/models/parentclassitem.php[/url]

has the fix you can try it


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 1.022 seconds
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save