I am converting JavaScript date objects to local time, then formatting using a special format.
I would like to create a test to confirm that the conversion is correct but depending on the location of the build server, the local time varies and so the generated date string varies.
Is there a best practice for testing these things?