fix: fix property type 'date' when backend returns an iso string - #1700
Conversation
|
Makes sense, I haven't been able to test on my actual project yet. But looking at the changes it looks good to me. Sorry for introducing that issue |
|
I'll have to give this more thought. If the database/backend stores datetimes using UTC timezone and the user's timezone is i.e. GMT+4, this will convert backend's 2024/08/13 11:00PM to 2024-08-13, while that should be 2024-08-14 in the user's timezone. |
|
My thought process was for date's with no time. We should display exactly what the DB is storing, so |
|
Hi there, |
|
I'll merge this for now. We should consider using https://www.npmjs.com/package/@formkit/tempo for dates in the meantime |
|
🎉 This PR is included in version 7.8.13 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Fixes issue related to #1691
@AshotN this fixes a bug where date values were rendered as
NaN-NaN-NaNif backend returned an ISO string instead of a simple date string while having the property'stypeset todateinstead ofdatetime.