default start time to now down to the minute

This commit is contained in:
Jim Paine 2020-05-06 14:38:48 +01:00
Родитель 56907ae1aa
Коммит b71a9e7a27
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -15,7 +15,7 @@ namespace Project.Zap.Models
[Required]
[Display(Name = "Starting from")]
[DisplayFormat(DataFormatString = "{yyyy-MM-ddTHH:mm}")]
public DateTime Start { get; set; } = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, 0, 0, 0);
public DateTime Start { get; set; } = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, DateTime.Now.Hour, DateTime.Now.Minute, 0);
[BindProperty]
[Display(Name = "Location")]