You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I understand that only sponsored issues will be worked on and that if I wish to sponsor an issue, I will contact the owner FIRST.
Describe the issue
I recently encountered an issue while selecting a date in the system. The data-value being generated for the selected date was incorrect. For example, when I selected January 12, 2025, the system returned 12-00-2025 instead of the correct value.
After investigating, I discovered that the issue was due to the month value not being properly adjusted. It seems the month index was not incremented by 1, which is required since months in many programming languages (like JavaScript) are zero-based.
I was able to resolve this on my end by adding a month conversion adjustment (+1) in the code. However, I wanted to bring this to your attention in case other users might be affected.
Original code:
_dateToDataValue(date) {
if (!DateTime.isValid(date))
return '';
return `${date.year}-**${date.month.toString().padStart(2, '0')}**-${date.date
.toString()
.padStart(2, '0')}`;
```}
Here is the corrected code:
### StackBlitz fork
Jquery
### What operating system(s) are you seeing the problem on?
Windows
### What browser(s) are you seeing the problem on?
Firefox
### What version of are you using? You can find this information from the sample StackBlitz.
v6.9.11
### What your browser's locale? You can find this information from the sample StackBlitz.
en-BE
The text was updated successfully, but these errors were encountered:
Prerequisites
Describe the issue
I recently encountered an issue while selecting a date in the system. The data-value being generated for the selected date was incorrect. For example, when I selected January 12, 2025, the system returned 12-00-2025 instead of the correct value.
After investigating, I discovered that the issue was due to the month value not being properly adjusted. It seems the month index was not incremented by 1, which is required since months in many programming languages (like JavaScript) are zero-based.
I was able to resolve this on my end by adding a month conversion adjustment (+1) in the code. However, I wanted to bring this to your attention in case other users might be affected.
Original code:
The text was updated successfully, but these errors were encountered: