mirror of
https://github.com/gwdevhub/Daybreak.git
synced 2026-07-15 15:19:57 +00:00
@@ -153,7 +153,7 @@ internal sealed class NotificationService(
|
||||
Title = title,
|
||||
Description = description,
|
||||
Metadata = metaData ?? string.Empty,
|
||||
ExpirationTime = expirationTime ?? (DateTime.Now + TimeSpan.FromSeconds(5)),
|
||||
ExpirationTime = expirationTime ?? (DateTime.UtcNow + TimeSpan.FromSeconds(5)),
|
||||
Dismissible = dismissible,
|
||||
Level = logLevel,
|
||||
};
|
||||
|
||||
@@ -167,7 +167,7 @@
|
||||
|
||||
private void ExtendNotification(NotificationWrapper notification)
|
||||
{
|
||||
notification.ExpirationTime = DateTime.Now + NotificationExtension;
|
||||
notification.ExpirationTime = DateTime.UtcNow + NotificationExtension;
|
||||
}
|
||||
|
||||
private async Task OpenNofitication(NotificationWrapper notification)
|
||||
|
||||
@@ -11,7 +11,7 @@ public class Notification : ICancellableNotification
|
||||
public string Description { get; init; } = string.Empty;
|
||||
public string Metadata { get; init; } = string.Empty;
|
||||
public DateTime ExpirationTime { get; init; }
|
||||
public DateTime CreationTime { get; init; } = DateTime.Now;
|
||||
public DateTime CreationTime { get; init; } = DateTime.UtcNow;
|
||||
|
||||
public bool Dismissible { get; init; }
|
||||
public virtual Type? HandlingType { get; init; }
|
||||
|
||||
Reference in New Issue
Block a user