Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions plugins/managesieve/managesieve.js
Original file line number Diff line number Diff line change
Expand Up @@ -1022,8 +1022,9 @@ function sieve_formattime(hour, minutes) {
break;
case 'g':
case 'h':
h = hour == 0 ? 12 : hour > 12 ? hour - 12 : hour;
time += (c == 'h' && hour < 10 ? '0' : '') + hour;
h = hour % 12;
h = h === 0 ? 12 : h;
time += (c === 'h' && h < 10 ? '0' : '') + h;

break;
case 'G':
Expand All @@ -1040,6 +1041,8 @@ function sieve_formattime(hour, minutes) {
break;
case 's':
time += '00';

break;
default:
time += c;
}
Expand Down