type conversion of Time, fix timestamp creation