Correctly set microseconds when setting date and time
Merge pull request #586 from kasunchathuranga/dev

Correctly set microseconds when setting date and time