Move non-reentrant DateFormat into function, thx Flow