- Issue created by @thakurnishant_06
- ๐ฎ๐ณIndia AditiVB
Aditi Saraf โ made their first commit to this issueโs fork.
- Assigned to AditiVB
- Issue was unassigned.
- Status changed to Needs review
10 months ago 10:11am 5 September 2023 - ๐ฎ๐ณIndia AditiVB
I got this issue fixed by changing the user ( who will create the content ) time Zone to the country standard time Zone .
Suppose A user who is creating content has time Zone UTC then time will not change on edit content page .
- thakurnishant_06 India
Hello @aditi Saraf ,
Thankyou for the response ,
I attempted to change the time zone, but it didn't work for me. Have you added the custom format m-d-Y to the date picker widget? Could you please explain the steps you followed? - Status changed to Active
10 months ago 4:31am 8 September 2023 - Status changed to Needs work
10 months ago 4:22am 15 September 2023 - ๐ญ๐บHungary nagy.balint
Hi!
Try to keep the date format at the default.
To change the date format displayed to the user, the Aleternative Format should be used. (See image)
- thakurnishant_06 India
Thanks for the response , is there any way if we can change the default format to our own format to pick date.
when i do so all the days are set to be disabled. - ๐ญ๐บHungary nagy.balint
Can you try the latest version? There was an issue with saving the widget.
- thakurnishant_06 India
Yes, I tried the latest version. Whenever I change the input date format, it automatically sets all the days to disabled, which prevents me from picking a date when creating content.
- ๐ญ๐บHungary nagy.balint
Are you absolutely sure that you are using the latest 2.0.9 version and cleared the drupal cache?
- last update
8 months ago Patch Failed to Apply - last update
8 months ago Patch Failed to Apply - last update
8 months ago Patch Failed to Apply - Status changed to Needs review
8 months ago 2:18pm 2 November 2023 - last update
7 months ago Patch Failed to Apply - ๐บ๐ธUnited States Peter Pulsifer
I seem to have the same issue. When I set a non-default date format, then when I edit the node the date changes to what seems like a random value. For example, (using the format "m/d/Y H:i K") a date of 18 December 2023 appears on the edit form as 03 August 2024 - time 00:00. If I save the edited form, the incorrect date is saved, which can be a real problem because it's unexpected. If I edit the date using the widget, the correct date (the one I selected) is saved. So the problem is where the widget is receiving the saved value, not where it sets the selected value.
With a little experimenting, it seems that it works with the Y format code in the first position. Trying the code "F j, Y H:i K" the date becomes "2023-12-18 18:30:00 America/New_York" which of course makes no sense.
It's good that it seems to work with the default format, but it would be great to be able to use a different format.
- last update
6 months ago Patch Failed to Apply - last update
6 months ago Patch Failed to Apply - ๐ฎ๐ณIndia adityarawat_ln
Hi @Peter Pulsifer,
can you please try above patch once.
Thank you
- ๐บ๐ธUnited States Peter Pulsifer
Hi, @adityarawat_ln,
That worked for me! Thanks for your assistance.
- Status changed to Postponed: needs info
26 days ago 9:32am 2 June 2024 - ๐ญ๐บHungary nagy.balint
As I cannot reproduce the issue when the alternative input format is used.
So with settings:
Alternative input format: F j, Y H:i K
Date format: Y-m-d H:iI will have to set the issue to postponed.
Feel free to reopen the issue if someone can reproduce the issue with the recommended settings.