mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
parent
40c23b7c7d
commit
688d55e00f
@ -173,6 +173,7 @@ class CalendarBloc extends Bloc<CalendarEvent, CalendarState> {
|
||||
|
||||
final date = DateTime.fromMillisecondsSinceEpoch(
|
||||
eventPB.timestamp.toInt() * 1000,
|
||||
isUtc: true,
|
||||
);
|
||||
return CalendarEventData(
|
||||
title: eventPB.title,
|
||||
|
@ -264,7 +264,10 @@ Option<DateCellData> calDataFromCellData(DateCellDataPB? cellData) {
|
||||
Option<DateCellData> dateData = none();
|
||||
if (cellData != null) {
|
||||
final timestamp = cellData.timestamp * 1000;
|
||||
final date = DateTime.fromMillisecondsSinceEpoch(timestamp.toInt());
|
||||
final date = DateTime.fromMillisecondsSinceEpoch(
|
||||
timestamp.toInt(),
|
||||
isUtc: true,
|
||||
);
|
||||
dateData = Some(DateCellData(
|
||||
date: date,
|
||||
time: time,
|
||||
|
@ -61,10 +61,12 @@ class TrashCell extends StatelessWidget {
|
||||
}
|
||||
|
||||
String dateFormatter($fixnum.Int64 inputTimestamps) {
|
||||
var outputFormat = DateFormat('MM/dd/yyyy hh:mm a');
|
||||
var date =
|
||||
DateTime.fromMillisecondsSinceEpoch(inputTimestamps.toInt() * 1000);
|
||||
var outputDate = outputFormat.format(date);
|
||||
final outputFormat = DateFormat('MM/dd/yyyy hh:mm a');
|
||||
final date = DateTime.fromMillisecondsSinceEpoch(
|
||||
inputTimestamps.toInt() * 1000,
|
||||
isUtc: true,
|
||||
);
|
||||
final outputDate = outputFormat.format(date);
|
||||
return outputDate;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user