fix alarm time issue