[2.0 r1420] Bug in date field ... with hours etc.

More
12 years 9 months ago #27970 by yasarts
Hi,
I created a field date, I put "2012-05-15 10:00" in and it display (with the format l d F Y H:i but it's the same thing with other formats) mardi 15 mai 2012 12:00.

This is not the same time. I looked in the plugin code FLEXIcontent date and I guess it goes to line 550 but I do not have the skills to solve it :-(

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

More
12 years 9 months ago #27972 by ggppdk
This is a date field bug in the J2.5 version only,

thanks for the report, i commit fix

If you want to apply a temporar fix now, then edit file:
plugins/flexicontent_fields/date/date.php
and please replace line :
Code:
$field->{$prop}[] = $values[$n] ? JHTML::_('date', $values[$n], JText::_($dateformat)/*, $timezone_offset=0*/ ) : JText::_( 'FLEXI_NO_VALUE' );
with:
Code:
$field->{$prop}[] = $values[$n] ? JHTML::_('date', $values[$n], JText::_($dateformat), $timezone='UTC') : JText::_( 'FLEXI_NO_VALUE' );

NOTE: i ll be adding a somewhat more detailed fix and parameters to the date field, in regards to date format and timezone


-- 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
12 years 9 months ago #28122 by ggppdk
You can test with these, (they contain improvements for the date field, that you might find useful, NOTE do not enable timezone editing for existing date fields, as all existing date values will be considered as being in UTC+0 timezone)

note that they also contain a couple of important bug fixes and quite a few other minor bug fixes and new features:

v2.0 RC8 r1460 for J2.5

v1.5.6 RC8 r1460 for J1.5


-- 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: 0.330 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