Keyword

Date of Field changed day and month when using JCE to Editor

  • saovry
  • saovry's Avatar Topic Author
  • Offline
  • Senior Member
More
2 years 10 months ago - 2 years 10 months ago #178941 by saovry
All my items used TinyMCE was editing content, now there is a problem now since I am using JCE as Editor.

I have some extract fields in K2 item such date of field and other by using TinyMCE. 

Now I am using JCE for Editor my k2 items.

Whenever I just click edit it the date of field changed automatic. 

For exmaple.
My Items date of fields with with TinyMCE is Monday, 13 September 2004

Now my Editor is JCE when I clicked edit it, it change Thursday, 1 January 2004

Here is video, I made a mistake forget to close audio record.
www.dropbox.com/search/personal?path=%2F&preview=id%3Af7VfxE5uy1kAAAAAAAAZ4Q&query=date&search_session_id=41710024816457592805544421773004&search_token=bEiB1cD0mskgg%2B%2BmWVbvPVm8YIwtIidjICYkiG8BLhg%3D

Thank you
 
Last edit: 2 years 10 months ago by saovry.

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

  • saovry
  • saovry's Avatar Topic Author
  • Offline
  • Senior Member
More
2 years 10 months ago - 2 years 10 months ago #178945 by saovry
I don’t know exactly what is happing with my date of field, it is from K2 or conflict between TinyMCE or JCE ..
Please help me...

My detailPHP version7.4.15Database version5.7.33 K2 v2.10.4 [Dev Build 20210205]
Last edit: 2 years 10 months ago by saovry.

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

More
2 years 10 months ago #178965 by JoomlaWorks
Can you post a screenshot please? The Dropbox video is inaccessible.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • saovry
  • saovry's Avatar Topic Author
  • Offline
  • Senior Member
More
2 years 10 months ago - 2 years 10 months ago #178972 by saovry
Here is the screenshoot and link
khmercdp.org/index.php/component/k2/item/626-khm0010715
 


khmercdp.org/index.php/component/k2/item/642-khm0010725
 
 

I show some students that the date of birth changed the date

To see the information you need to login with username and password, username only read information.
username : test
password : testtest

If you need super user to check more information so let me know, I will send to you.

thank you
Attachments:
Last edit: 2 years 10 months ago by saovry.

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

More
2 years 10 months ago #178985 by JoomlaWorks
K2 uses this format to render dates from extra fields: github.com/getk2/k2/blob/d798e0c2b2b102b41549fed0faa43ab9f20a45a0/language/en-GB/en-GB.com_k2.ini#L42

This is part of the language file.

Change as necessary.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • saovry
  • saovry's Avatar Topic Author
  • Offline
  • Senior Member
More
2 years 10 months ago #179003 by saovry
What my problem is not date or year format, the problem is at extra date of editing is auto change value different with front page.

Additional Information
Date of Birth : 12/12/2005

When we click edit the item, it changed the date/month) automatic different from front page
Date of Birth 1/1/2005

This is the problem, could you check?

thank

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

More
2 years 10 months ago #179007 by JoomlaWorks
For some reason the default formatting is not properly interpreted on your server to the actual date. Modify it to see what I mean. Try replacing the %X placeholder with actual date formatting constants in PHP, like:

l (lowercase 'L') A full textual representation of the day of the week
d Day of the month, 2 digits with leading zeros
M A short textual representation of a month, three letters
m Numeric representation of a month, with leading zeros
F A full textual representation of a month, such as January or March
Y A full numeric representation of a year, 4 digits
H 24-hour format of an hour with leading zeros
i Minutes with leading zeros

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • saovry
  • saovry's Avatar Topic Author
  • Offline
  • Senior Member
More
2 years 10 months ago - 2 years 10 months ago #179016 by saovry

For some reason the default formatting is not properly interpreted on your server to the actual date. Modify it to see what I mean. Try replacing the %X placeholder with actual date formatting constants in PHP, like:

l (lowercase 'L') A full textual representation of the day of the week
d Day of the month, 2 digits with leading zeros
M A short textual representation of a month, three letters
m Numeric representation of a month, with leading zeros
F A full textual representation of a month, such as January or MarchY A full numeric representation of a year, 4 digits
H 24-hour format of an hour with leading zeros
i Minutes with leading zeros

Dear Fotis,
It is not date format. The date extra field at front page has different value from the date extra field when we click edit on items.
With this student  khmercdp.org/index.php/component/k2/item/626-khm0010715

Student ID Khm0010715
The Date of Birth is on Wednesday, 2 Auguest 2006 at from page list, and now we will edit some information on student ID Khm0010715. I clicked Edit Button, I noted that the Date of Birth at extra field was change to 2006-01-01 (It is wrong), it should be 2006-08-02 

khmercdp.org/index.php/component/k2/item/642-khm0010725
Student ID Khm0010725
The Date of Birth is on Monday, 12 December 2005 at page list, and now we will edit some information on student ID Khm0010725. I clicked Edit Button, I noted that the Date of Birth at extra field was change to 2005-01-01 (It is wrong), it should be 2005-12-12.

It is what I mean. It is automatic to change wrong value.
here is the video
www.dropbox.com/s/tv63s6gk5jk3t8l/Error%20Date.mov?dl=0

Please check my attachment early sent to you too.
Thank
Last edit: 2 years 10 months ago by saovry.

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

More
2 years 10 months ago #179043 by JoomlaWorks
I've no idea why this happens to you and furthermore, I can't possibly re-produce it. Sorry.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum