Creation date format different than others, YYYY-MM-DD, instead of DD-MM-YYY

More
3 years 7 months ago - 3 years 7 months ago #79310 by ggppdk
Hello


When use are using the date field to display publish up
- the field configuration is used only for displaying purposes !!
- the formatting parameter for item form are not used

Instead the publish up field is created via its settings inside the item.xml

the change i made was to force (inside item.xml) the format to be always
Code:
format="%Y-%m-%d %H:%M:%S"

for date form fields:
- publish_up
- publish_down

otherwise the fields will not save properly (so the fix was to make sure fields are always saved without data loss)
if i remember i tested with native Joomla article form, if i try to use other custom format inside XML file (or custom format via changing the language string) then the dates are not saved properly


-- 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...
Last edit: 3 years 7 months ago by ggppdk.

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.258 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