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
Our trips from January 30th and 31st had an undefined date Invalid dateHundefined.
After some investigation we found that the month value of tripgj.data.properties.start_local_dt received from the database was equal to 1 (which corresponds to February). Since there are only 29 days in February, the 30th and 31th return an erreur.
How should this appropriately be fixed on the server side ?
In the mean time, we fixed it by replacing tripgj.data.properties.start_local_dt with tripgj.data.properties.start_fmt_time in list.js, line 210 and 211.
Thanks!
The text was updated successfully, but these errors were encountered:
@stephhuerre there is an open PR to fix this (e-mission/e-mission-phone#615) in which I suggested the principled fix (we should keep the server untouched and fix the client, so that both draft trips and processed trips can be fixed). Unfotunately, @atton16 has not yet updated the PR. If you want to implement a Right Fix and submit it to master, that would be great!
Hi @shankari,
Our trips from January 30th and 31st had an undefined date
Invalid dateHundefined
.After some investigation we found that the month value of
tripgj.data.properties.start_local_dt
received from the database was equal to 1 (which corresponds to February). Since there are only 29 days in February, the 30th and 31th return an erreur.How should this appropriately be fixed on the server side ?
In the mean time, we fixed it by replacing
tripgj.data.properties.start_local_dt
withtripgj.data.properties.start_fmt_time
in list.js, line 210 and 211.Thanks!
The text was updated successfully, but these errors were encountered: