add `.toUtc()`

This commit is contained in:
krawieck 2021-07-08 13:57:48 +02:00
parent 5cb542609e
commit 45ea7a0b54
1 changed files with 1 additions and 1 deletions

View File

@ -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 &&