Bug#5808 Fix display time error when using firefox