mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
[MM-56512] Impossible to set a custom reminder on the same day of following months (#25918)
Co-authored-by: Mattermost Build <build@mattermost.com>
This commit is contained in:
parent
ae33de57ff
commit
d2da8d3a50
@ -92,7 +92,7 @@ const DateTimeInputContainer: React.FC<Props> = (props: Props) => {
|
||||
const setTimeAndOptions = () => {
|
||||
const currentTime = getCurrentMomentForTimezone(timezone);
|
||||
let startTime = moment(time).startOf('day');
|
||||
if (time.date() === currentTime.date()) {
|
||||
if (currentTime.isSame(time, 'date')) {
|
||||
startTime = getRoundedTime(currentTime);
|
||||
}
|
||||
setTimeOptions(getTimeInIntervals(startTime));
|
||||
|
Loading…
Reference in New Issue
Block a user