added normalization to jmktime
chages for datetime