From 45ea7a0b546b34767eb50c96d0a7a01135a41de8 Mon Sep 17 00:00:00 2001 From: krawieck Date: Thu, 8 Jul 2021 13:57:48 +0200 Subject: [PATCH] add `.toUtc()` --- lib/util/extensions/cake_day.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util/extensions/cake_day.dart b/lib/util/extensions/cake_day.dart index 89c49df..7fba60c 100644 --- a/lib/util/extensions/cake_day.dart +++ b/lib/util/extensions/cake_day.dart @@ -3,7 +3,7 @@ import 'package:lemmy_api_client/v3.dart'; // inspired by https://github.com/LemmyNet/lemmy-ui/blob/66c846ededef8c0afd5aaadca4aaedcbaeab3ee6/src/shared/utils.ts#L533 extension PersonSafeCakeDay on PersonSafe { bool get isCakeDay { - final now = DateTime.now(); + final now = DateTime.now().toUtc(); return now.day == published.day && now.month == published.month &&