🐛 Fix some date issue
This commit is contained in:
parent
c1e89a2ee6
commit
d0276f9ac6
@ -126,14 +126,20 @@ class _PunishmentsScreenState extends State<PunishmentsScreen> {
|
|||||||
Text(ele.reason),
|
Text(ele.reason),
|
||||||
const Gap(4),
|
const Gap(4),
|
||||||
Text(
|
Text(
|
||||||
'punishmentCreatedAt'
|
'punishmentCreatedAt'.tr(args: [
|
||||||
.tr(args: [DateFormat().format(ele.createdAt)]),
|
DateFormat().format(
|
||||||
|
ele.createdAt.toLocal(),
|
||||||
|
)
|
||||||
|
]),
|
||||||
).opacity(0.8),
|
).opacity(0.8),
|
||||||
Text(
|
Text(
|
||||||
ele.expiredAt == null
|
ele.expiredAt == null
|
||||||
? 'punishmentExpiredNever'.tr()
|
? 'punishmentExpiredNever'.tr()
|
||||||
: 'punishmentExpiredAt'.tr(
|
: 'punishmentExpiredAt'.tr(args: [
|
||||||
args: [DateFormat().format(ele.expiredAt!)]),
|
DateFormat().format(
|
||||||
|
ele.expiredAt!.toLocal(),
|
||||||
|
)
|
||||||
|
]),
|
||||||
).opacity(0.8),
|
).opacity(0.8),
|
||||||
const Gap(8),
|
const Gap(8),
|
||||||
if (ele.moderator != null)
|
if (ele.moderator != null)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user