update syntax to repair overflow error

This commit is contained in:
kicap
2023-08-18 02:30:56 +08:00
parent 7a66245b7e
commit 64668289d7
174 changed files with 534 additions and 302 deletions

View File

@ -19,7 +19,7 @@ class OtherFunction {
String timeStampConverter(int timeStamp) {
DateTime date = DateTime.fromMillisecondsSinceEpoch(timeStamp * 1000);
// day name, date and hours with am/pm
String formattedDate = DateFormat('EEEE, d MM-yyyy | HH:mm a').format(date);
String formattedDate = DateFormat('EE, d MM-yyyy | HH:mm a').format(date);
return formattedDate;
}
}