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
There is a function convertDate that is defined in two different places here. Two problems with this code:
If the time change required (for time zone of owner) changes the date, this code doesn't compute the correct date.
When this is fixed, it will have to be done in both places (so maybe there should only be one place?)
Another possibility would be to use code that already exists, rather than rolling our own (and risking this kind of problem), for example, either moment or strftime ought to provide what we need.
The text was updated successfully, but these errors were encountered:
There is no good reason for writing our own function. It was my first manifold app and the convertDate function was from the first stack overflow response on how to convert a timestamp that I found. I'm not sure how that code got duplicated. I assigned myself and I'll fix it.
There is a function
convertDate
that is defined in two different places here. Two problems with this code:Another possibility would be to use code that already exists, rather than rolling our own (and risking this kind of problem), for example, either
moment
orstrftime
ought to provide what we need.The text was updated successfully, but these errors were encountered: