bug wth date

More
13 years 3 months ago #29258 by jeysonkool
bug wth date was created by jeysonkool
Hi guys, i am printing a list of dates from a specific field and it deduct a day.
Example:
Record Date: 15/02/2012
Printing the day in flexicontent give me: 14/02/2012
The month and year print well but it deduct a day
Why this issue?
My code to print is:
<?php echo $this->fields->display; ?>

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

More
13 years 3 months ago #29262 by micker
Replied by micker on topic bug wth date
please dot not 2 topic !! for same question ;)

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
13 years 3 months ago #29286 by ggppdk
Replied by ggppdk on topic bug wth date
Which Flexicontent revision do you have r1496? there are parameters in the date field for the timezone, please examine them and read popup descriptions

e.g. if you have enable usage of time zone and e.g. you have a date :

Record Date: 15/02/2012 00:00

and the timezone of user is -2

then it will print as
14/02/2012

because the actual date for user is : 14/02/2012 22:00

did you change configuration of the date field?


-- 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 review. Thanks!

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

More
13 years 3 months ago #29391 by jeysonkool
Replied by jeysonkool on topic bug wth date
my version of FLEXIcontent is 1.5.4 stable (r558)
with joomla 1.5

in the version 1.5.4 i dont see the date field parameters.

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

More
13 years 3 months ago #29392 by micker
Replied by micker on topic bug wth date
please update on 1.5.6RC9 ... test it in local dev (some update in template are necessary)
regards

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
13 years 3 months ago #29395 by jeysonkool
Replied by jeysonkool on topic bug wth date
Hi guys, i fix the issue without update my flexicontent ;)

i just modify a code line in the date.php to turn off the server default timezone, $timezone_offset=0

Line 228: $field->{$prop}[] = $values[$n] ? JHTML::_('date', $values[$n], JText::_($dateformat), $timezone_offset=0 ) : JText::_( 'FLEXI_NO_VALUE' );

Regards thank you all for the help; i leave the code if some have the same issue.

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

More
13 years 3 months ago #29407 by ggppdk
Replied by ggppdk on topic bug wth date
I see, you do not have the new FLEXIcontent version,

Just note that in the new FLEXIcontent version v1.5.6/v2.0 RC8:

the date field has all the timezone stuff that you will need

Also please avoid double posting to 2 threads ;)


-- 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 review. Thanks!

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

Moderators: vistamediajoomlacornerggppdk
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