Default Time Zone: UTC?

More
11 years 7 months ago #34385 by scorpion_pt
Hi again,

Busy times... ;)

When saving an item, flexicontent always save in the database with UTC time.

We need to use UTC -1
Despict the way I configure PHP or MySQL the result is always the same. Time saved with UTC.

Is this a Flexi default behavior?
If yes, how can we overcome this issue?

Thanks in advance for any help :D

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

More
11 years 7 months ago #34390 by micker
Replied by micker on topic Default Time Zone: UTC?
you can use override time in joomla configuration and use same for field

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
11 years 7 months ago #34391 by ggppdk
Replied by ggppdk on topic Default Time Zone: UTC?
In short it is better not to do it.

Joomla also stores UTC, and in general all DBs recommend saving UTC ...

Instead it is better to do this
1. adjust you SQL queries to achieve desired result e.g. using DATE_ADD() function
2. format the output of the displayed date to be displayed in desirable 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
11 years 7 months ago #34499 by scorpion_pt
Replied by scorpion_pt on topic Default Time Zone: UTC?
Thanks ggppdk I can live with that.
But I cant understand why the possibility to add time offset to joomla time, long asked feature, its so difficult for joomla devs?

For me this is really funny :shock:

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

More
11 years 7 months ago #34503 by ggppdk
Replied by ggppdk on topic Default Time Zone: UTC?
The offset can be used when date is displayed, not sure why this would be necessary for DB too,

it is better to only store UTC and do the customization display at PHP when displaying,


-- 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 7 months ago #34540 by scorpion_pt
Replied by scorpion_pt on topic Default Time Zone: UTC?

ggppdk wrote: The offset can be used when date is displayed, not sure why this would be necessary for DB too,

it is better to only store UTC and do the customization display at PHP when displaying,


I agree... but still cant understand why is so difficult to implement an offset as joomla parameter!?

As example, I preferred to not mess around with code and change my time zone to Atlantic/Azores(UTC -1) and I know that I've to change again when Daylight Saving Time changes to summer time.
If you ask me, joomla devs don't care a dam(with all my respect) if this is user friendly or not.

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.311 seconds
Save
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