kodilan-com / frontend

Frontend codebase of kodilan.com
https://kodilan.com
GNU Affero General Public License v3.0
569 stars 90 forks source link

The last updated date of posts seems as 'Invalid Date' on iOS #105

Closed firateski closed 4 years ago

firateski commented 4 years ago

The last updated date of posts seems as 'Invalid Date' on iOS (On both Safari and Chrome).

After replacing the space character with 'T' in the last updated date value, works fine:

-  2020-08-28 16:21:55
+  2020-08-28T16:21:55

See: https://stackoverflow.com/questions/13363673/javascript-date-is-invalid-on-ios/13363791#13363791

If you think this solution is acceptable, I can create a PR for you.

To Reproduce

  1. Go to any post using iOS
  2. See the last update date which is invalid

Expected behavior The last updated date of posts should look like that 28 Ağustos 2020, but it looks as Invalid Date on iOS.

Screenshots

Smartphone

firateski commented 4 years ago

I just realized that there is already an open PR to fix this, so I'm closing this issue. See: #88