move time format into service
Merge pull request #27 from rpandey1234/dedup

move time format into service