fix alarm time bug