We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9b238df + e930b1d commit 834d5f9Copy full SHA for 834d5f9
static/profile/js/profileeditor.js
@@ -630,11 +630,11 @@
630
}
631
632
function toTimeString(minfrommidnight) {
633
- return moment().startOf('day').add(minfrommidnight,'minutes').format('HH:mm');
+ return moment.utc().startOf('day').add(minfrommidnight,'minutes').format('HH:mm'); // using utc to avoid daylight saving offset
634
635
636
function toDisplayTime (minfrommidnight) {
637
- var time = moment().startOf('day').add(minfrommidnight,'minutes');
+ var time = moment.utc().startOf('day').add(minfrommidnight,'minutes'); // using utc to avoid daylight saving offset
638
return client.settings.timeFormat === 24 ? time.format('HH:mm') : time.format('h:mm A');
639
640
0 commit comments