Get the timestamp right no matter where the code is run.