handle null timestamps