Skip to content

Commit 4ef5f8e

Browse files
authored
Merge pull request #196 from Pavel401/fix-dates
fixed the date issue
2 parents ff98b51 + abc81a5 commit 4ef5f8e

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

lib/services/task_details.dart

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -207,14 +207,13 @@ class AttributeWidget extends StatelessWidget {
207207

208208
@override
209209
Widget build(BuildContext context) {
210-
// DateTime format =
211-
// (value is DateTime) ? (value).toLocal() : DateTime.now().toUtc();
212210
var localValue = (value is DateTime)
213-
? // now = (value as DateTime).toLocal(),
214-
// '${format.day}-${format.month}-${format.year} ${format.hour}:${format.minute}'
215-
//DateFormat("dd-MM-yyyy HH:mm").format(value)
216-
DateFormat.yMEd().add_jms().format(DateTime.now())
211+
? DateFormat.yMEd().add_jms().format(value)
217212
: ((value is BuiltList) ? (value).toBuilder() : value);
213+
214+
// var localValue = (value is DateTime)
215+
// ? (value as DateTime).toLocal()
216+
// : ((value is BuiltList) ? (value as BuiltList).toBuilder() : value);
218217
switch (name) {
219218
case 'description':
220219
return DescriptionWidget(

0 commit comments

Comments
 (0)