Merge pull request #419 from orz12/fix-season-timeformat

fix: 专栏时间没有年份
This commit is contained in:
guozhigq
2024-01-15 23:32:24 +08:00
committed by GitHub

View File

@ -46,12 +46,13 @@ class MemberSeasonsItem extends StatelessWidget {
height: maxHeight,
),
),
if (seasonItem.duration != null)
if (seasonItem.pubdate != null)
PBadge(
bottom: 6,
right: 6,
type: 'gray',
text: Utils.timeFormat(seasonItem.duration),
text: Utils.CustomStamp_str(
timestamp: seasonItem.pubdate, date: 'YY-MM-DD'),
)
],
);
@ -78,7 +79,7 @@ class MemberSeasonsItem extends StatelessWidget {
const Spacer(),
Text(
Utils.CustomStamp_str(
timestamp: seasonItem.pubdate, date: 'MM-DD'),
timestamp: seasonItem.pubdate, date: 'YY-MM-DD'),
style: TextStyle(
fontSize: 11,
color: Theme.of(context).colorScheme.outline,