Work correctly with Time library.