changed datetime properties to return just the date, ignore the time.

This commit is contained in:
chris.watts90@outlook.com 2017-02-10 16:53:44 +00:00
parent fd257c7bca
commit 5be05ecd5e

View File

@ -130,7 +130,7 @@ namespace SQLiteRepository
var now = DateTime.UtcNow;
var calendarWeek = GetIso8601CalendarWeek(now);
ret.CalendarWeek = calendarWeek;
ret.SelectedDate = now;
ret.SelectedDate = now.Date;
ret.TimeLogs = GetTimeLogList(userId, calendarWeek, now.Year);
return ret;
@ -138,7 +138,7 @@ namespace SQLiteRepository
public TimeLogList GetTimeLogs(int userId, DateTime selectedDate)
{
var ret = new TimeLogList {SelectedDate = selectedDate};
var ret = new TimeLogList {SelectedDate = selectedDate.Date};
var calendarWeek = GetIso8601CalendarWeek(selectedDate);
ret.CalendarWeek = calendarWeek;