remove offset cuz it got fixed in lac

This commit is contained in:
krawieck 2021-02-13 17:03:40 +01:00
parent 39b12fe3bc
commit 3afb5c9d11
1 changed files with 2 additions and 5 deletions

View File

@ -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);
}