Replaced DateTimeOffset usage in the calendar.
This commit is contained in:
@@ -142,5 +142,7 @@ public partial class AccountManagementViewModel : AccountManagementPageViewModel
|
||||
};
|
||||
|
||||
var synchronizationResponse = await WinoServerConnectionManager.GetResponseAsync<CalendarSynchronizationResult, NewCalendarSynchronizationRequested>(new NewCalendarSynchronizationRequested(synchronizationOptions, SynchronizationSource.Client));
|
||||
accountCreationDialog.Complete(cancel: false);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -237,20 +237,20 @@ public partial class CalendarPageViewModel : CalendarBaseViewModel,
|
||||
{
|
||||
var durationSeconds = (QuickEventEndTime - QuickEventStartTime).TotalSeconds;
|
||||
|
||||
var testCalendarItem = new CalendarItem
|
||||
{
|
||||
CalendarId = SelectedQuickEventAccountCalendar.Id,
|
||||
StartDate = QuickEventStartTime,
|
||||
DurationInSeconds = durationSeconds,
|
||||
CreatedAt = DateTime.UtcNow,
|
||||
Description = string.Empty,
|
||||
Location = Location,
|
||||
Title = EventName,
|
||||
Id = Guid.NewGuid()
|
||||
};
|
||||
//var testCalendarItem = new CalendarItem
|
||||
//{
|
||||
// CalendarId = SelectedQuickEventAccountCalendar.Id,
|
||||
// StartDate = QuickEventStartTime,
|
||||
// DurationInSeconds = durationSeconds,
|
||||
// CreatedAt = DateTime.UtcNow,
|
||||
// Description = string.Empty,
|
||||
// Location = Location,
|
||||
// Title = EventName,
|
||||
// Id = Guid.NewGuid()
|
||||
//};
|
||||
|
||||
IsQuickEventDialogOpen = false;
|
||||
await _calendarService.CreateNewCalendarItemAsync(testCalendarItem, null);
|
||||
//IsQuickEventDialogOpen = false;
|
||||
//await _calendarService.CreateNewCalendarItemAsync(testCalendarItem, null);
|
||||
|
||||
// TODO: Create the request with the synchronizer.
|
||||
}
|
||||
|
||||
@@ -17,11 +17,11 @@ public partial class CalendarItemViewModel : ObservableObject, ICalendarItem, IC
|
||||
|
||||
public IAccountCalendar AssignedCalendar => CalendarItem.AssignedCalendar;
|
||||
|
||||
public DateTime StartDate { get => CalendarItem.StartDate; set => CalendarItem.StartDate = value; }
|
||||
public DateTime StartDate => CalendarItem.StartDate;
|
||||
|
||||
public DateTime EndDate => CalendarItem.EndDate;
|
||||
|
||||
public double DurationInSeconds { get => CalendarItem.DurationInSeconds; set => CalendarItem.DurationInSeconds = value; }
|
||||
public double DurationInSeconds => CalendarItem.DurationInSeconds;
|
||||
|
||||
public ITimePeriod Period => CalendarItem.Period;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user