create milis during encoding, not at date creation time