converting seconds logic has changed.
Merge pull request #2032 from shivalinga/master

converting seconds logic has changed.