Updated the code to use the correct method of converting a time string t...

...o unix and ntp time.