Bentheburrito / sacastats

A stat site for Connery's SaCa outfit members. Built with Elixir and Phoenix
MIT License
2 stars 0 forks source link

Fix dateTime formatter #112

Closed dm0896665 closed 2 years ago

dm0896665 commented 2 years ago

Fixed Non-US dates erroring out. This error was getting caused by the dd-mm-yyyy vs mm-dd-yyyy because new Date() was receiving dd-mm-yyyy and expecting mm-dd-yyyy.

I also added in some try catches to make sure that it's easier to debug as well as actually loading the page even if it doesn't work.

This will close #111

dm0896665 commented 2 years ago

Yeah I just changed the PREFERED_LANGUAGE value equal to something else like en-AU or en-AT to test ciphers issue specifically. This is basically just simulating a different language so you could do that with any other one as well.

Bentheburrito commented 2 years ago

Ahhh that's nice, I thought you'd have to connect from an IP in another country or something like that