Optimized datetimepicker relative time display handling

This commit is contained in:
Bernd Bestel
2022-03-07 17:57:14 +01:00
parent 632a542236
commit 7532626123
3 changed files with 7 additions and 1 deletions

View File

@@ -238,6 +238,9 @@ Grocy.Components.DateTimePicker2.GetInputElement().on('keyup', function(e)
}
}
$('#datetimepicker2-timeago').attr("datetime", Grocy.Components.DateTimePicker2.GetValue());
RefreshContextualTimeago(".datetimepicker2-wrapper");
//Custom validation
value = Grocy.Components.DateTimePicker2.GetValue();
dateObj = moment(value, format, true);