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
Current behavior
Without the "utc" property, or with the property without a value, the calendar interprets the date selected in local time. With the "utc" property, regardless of the value, the calendar interprets the date selected in UTC. The default, not setting the property, does not behave the same as setting "utc=false", which is supposed to be the same as the default.
Expected behavior
Setting "utc=false" should make the calendar interpret the date selected in local time.
Minimal reproduction of the problem with instructions
Select a date. The selected date is not midnight in local time.
What is the motivation / use case for changing the behavior?
UTC behavior is confusing for users. For example, see #2426 ("Calendar selected date is off a day").
This is possibly also related to #4359
Please tell us about your environment:
Plunker.
Angular version: 4.2.6
PrimeNG version: 5.0.2
Browser: [Chrome 63 | Firefox 58]
The text was updated successfully, but these errors were encountered:
I'm submitting a ... (check one with "x")
Plunkr Case (Bug Reports)
https://plnkr.co/edit/dICdEA?p=preview
Current behavior
Without the "utc" property, or with the property without a value, the calendar interprets the date selected in local time. With the "utc" property, regardless of the value, the calendar interprets the date selected in UTC. The default, not setting the property, does not behave the same as setting "utc=false", which is supposed to be the same as the default.
Expected behavior
Setting "utc=false" should make the calendar interpret the date selected in local time.
Minimal reproduction of the problem with instructions
Select a date. The selected date is not midnight in local time.
What is the motivation / use case for changing the behavior?
UTC behavior is confusing for users. For example, see #2426 ("Calendar selected date is off a day").
This is possibly also related to #4359
Please tell us about your environment:
Plunker.
The text was updated successfully, but these errors were encountered: