AHSAppDevTeam / Arcadia-High-Mobile-iOS

Official Github Repository for the iOS AHS Mobile App
MIT License
3 stars 1 forks source link

Unix Epoch Timestamp gives wrong reading #4

Closed richardwei6 closed 3 years ago

richardwei6 commented 3 years ago

For the AHS app dev feedback form and a few other articles, the unix epoch shows 5 decades ago instead of 2-3 days ago.

Screenshot of article with issue

richardwei6 commented 3 years ago

Seems like the issue was from the ACES editor. The timestamp attribute was a string instead of an integer. Thus, the timestamp passed to the function was 0 meaning the output string represented Jan 1st, 1970.