Replaced DateTimeOffset usage in the calendar.

This commit is contained in:
Burak Kaan Köse
2025-05-20 21:08:19 +02:00
parent c4e561dee6
commit aba7539e7d
9 changed files with 47 additions and 67 deletions

View File

@@ -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.
}