Fix timezone issue causing nullpointer.