pawelmalak / snippet-box

Snippet Box is a simple self-hosted app for organizing your code snippets. It allows you to easily create, edit, browse and manage your snippets in various languages.
MIT License
970 stars 81 forks source link

Wrong date / time on fresh install, pull #22

Closed mccount closed 3 years ago

mccount commented 3 years ago

grafik

pawelmalak commented 3 years ago

That's weird. I created two new instances using both tags and it's working fine. What browser are you using and on what platform?

Starf0x commented 3 years ago

I have both, the internal version has the correct date and time, the one external (nginx) version shows indeed NaN.

pawelmalak commented 3 years ago

I have both, the internal version has the correct date and time, the one external (nginx) version shows indeed NaN.

What browser and platform?

I have three instances of snippet box running:

and I'm getting correct dates on all of them so it might be related to browser you are using.

firstchrono commented 3 years ago

I'm seeing this issue. I'm using the local only latest tag and the browser is FF 93.

It does appear to be browser related. If I switch to chrome, it works fine.

pawelmalak commented 3 years ago

So it seems that it works on chromium based browsers (tested on Chrome, Opera and Edge) but gives NaN on Firefox and Safari. I will try to fix it when I have a moment.

mccount commented 3 years ago

Web development at it's best. I can confirm this is Firefox related only. (no access to safari) Thanks for your effort @pawelmalak, take your time!