core: fix time displayed in status bar (it was one second late) (bug #40097)