Timestamp microservice - feedback welcome

Hi,

Here’s my timestamp microservice project:

heroku: https://timestamp-zelite.herokuapp.com/

github: https://github.com/zelite/Timestamp-microservice

Things I have learned about the wonkiness of the Javascript date functions:

  • If we go back in time to a date with a negative year, using date.toLocaleDateString() will throw away the minus sign in the year.
  • unixdate is seconds since a certain origin. However, to build a date in js we can use new Date(<milliseconds since a certain origin>)

So, please leave your feedback and let me know if you find any bugs.