|
|
|
|
@ -28,21 +28,21 @@ class DateUtil {
|
|
|
|
|
const end = "+0300)";
|
|
|
|
|
final startIndex = date.indexOf(start);
|
|
|
|
|
final endIndex = date.indexOf(end, startIndex + start.length);
|
|
|
|
|
// if (projectId == 2 || projectId == 3) {
|
|
|
|
|
// return DateTime.fromMillisecondsSinceEpoch(
|
|
|
|
|
// int.parse(
|
|
|
|
|
// date.substring(startIndex + start.length, endIndex),
|
|
|
|
|
// ),
|
|
|
|
|
// isUtc: true)
|
|
|
|
|
// .add(Duration(hours: 4));
|
|
|
|
|
// } else {
|
|
|
|
|
return DateTime.fromMillisecondsSinceEpoch(
|
|
|
|
|
if (projectId == 2 || projectId == 3) {
|
|
|
|
|
return DateTime.fromMillisecondsSinceEpoch(
|
|
|
|
|
int.parse(
|
|
|
|
|
date.substring(startIndex + start.length, endIndex),
|
|
|
|
|
),
|
|
|
|
|
isUtc: true)
|
|
|
|
|
.add(Duration(hours: 4));
|
|
|
|
|
} else {
|
|
|
|
|
return DateTime.fromMillisecondsSinceEpoch(
|
|
|
|
|
int.parse(
|
|
|
|
|
date.substring(startIndex + start.length, endIndex),
|
|
|
|
|
),
|
|
|
|
|
isUtc: true)
|
|
|
|
|
.add(Duration(hours: 3));
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
return DateTime.now();
|
|
|
|
|
}
|
|
|
|
|
|