From 3afb5c9d116f1cf13f60dac8a130e95b41d3fd12 Mon Sep 17 00:00:00 2001 From: krawieck Date: Sat, 13 Feb 2021 17:03:40 +0100 Subject: [PATCH] remove offset cuz it got fixed in lac --- lib/util/extensions/datetime.dart | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/util/extensions/datetime.dart b/lib/util/extensions/datetime.dart index de4bf2c..eaf19ad 100644 --- a/lib/util/extensions/datetime.dart +++ b/lib/util/extensions/datetime.dart @@ -2,11 +2,8 @@ import 'package:timeago/timeago.dart' as timeago; extension FancyTime on DateTime { /// returns `this` time as a relative, human-readable string. In short format - String get fancyShort => timeago.format(this, - locale: 'en_short', - clock: DateTime.now().subtract(DateTime.now().timeZoneOffset)); + String get fancyShort => timeago.format(this, locale: 'en_short'); /// returns `this` time as a relative, human-readable string - String get fancy => timeago.format(this, - clock: DateTime.now().subtract(DateTime.now().timeZoneOffset)); + String get fancy => timeago.format(this); }