Bug fix when specifying the time