I do this in one of my Emacs lisp projects, I set the `TZ` environment variable 
to `UTC` in my test config.

So when the tests run on Travis, it thinks that it lives in the UTC zone, and 
all time stamps are created accordingly.

That way, you don't need to hardcode the time zone in your Nim code, and all 
time manipulation code will default to the local time zone (set by TZ).. I 
believe.

I haven't tried this with Nim, so just try it out :)

Reply via email to