patch by moritz venn: wrap around for minutes/hours