Validity time not checked properly

name publishing was failing of bad format.
Merge pull request #401 from zignig/namesys_fix

Validity time not checked properly