Validity time not checked properly

name publishing was failing of bad format.