TF-1003 Fix select today as start date, can not receive vacation message

This commit is contained in:
dab246
2022-09-29 17:33:29 +07:00
committed by Dat H. Pham
parent 39749dcba9
commit 2c61102d03
4 changed files with 15 additions and 30 deletions
@@ -13,7 +13,7 @@ extension DateTimeExtension on DateTime? {
DateTime? applied(TimeOfDay? time) {
if (this != null && time != null) {
return DateTime.utc(this!.year, this!.month, this!.day, time.hour, time.minute);
return DateTime(this!.year, this!.month, this!.day, time.hour, time.minute);
}
return null;
}