We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c581a90 + 522c138 commit 9a9d897Copy full SHA for 9a9d897
ui/src/timespan/TimeSpan.tsx
@@ -183,6 +183,7 @@ export const TimeSpan: React.FC<TimeSpanProps> = React.memo(
183
if (!newFrom.isValid()) {
184
return;
185
}
186
+ newFrom.set({second: 0});
187
if (to && moment(newFrom).isAfter(to)) {
188
const newTo = moment(newFrom).add(15, 'minute');
189
noteAwareUpdateTimeSpan({
@@ -217,6 +218,7 @@ export const TimeSpan: React.FC<TimeSpanProps> = React.memo(
217
218
if (!newTo.isValid()) {
219
220
221
+ newTo.set({second: 0});
222
if (moment(newTo).isBefore(from)) {
223
const newFrom = moment(newTo).subtract(15, 'minute');
224
0 commit comments