mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-19 16:46:22 +08:00
@@ -62,8 +62,9 @@ class DateUtil {
|
||||
return '昨天 ${_twoDigits(date.hour)}:${_twoDigits(date.minute)}';
|
||||
}
|
||||
if (isHistory) {
|
||||
final DateFormat sdf =
|
||||
now.year == date.year ? _shortFormatD : longFormatD;
|
||||
final DateFormat sdf = now.year == date.year
|
||||
? _shortFormatD
|
||||
: longFormatD;
|
||||
return sdf.format(date);
|
||||
}
|
||||
return longFormatD.format(date);
|
||||
|
||||
Reference in New Issue
Block a user