mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Fixing DateTimeField validation
This commit is contained in:
@@ -152,7 +152,7 @@ namespace Orchard.Fields.Drivers {
|
||||
field.DateTime = DateTime.MinValue;
|
||||
}
|
||||
}
|
||||
catch (FormatException) {
|
||||
catch {
|
||||
updater.AddModelError(GetPrefix(field, part), T("{0} could not be parsed as a valid date and time.", field.DisplayName));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user