minor refactoring; date and time are in UTC