From 76ab0aef486d46e57f0c342a9619241547f193a7 Mon Sep 17 00:00:00 2001 From: Valentin CZERYBA Date: Mon, 11 Nov 2024 11:46:42 +0100 Subject: [PATCH] fix datetime --- covas_mobile/lib/pages/SearchDelegate.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/covas_mobile/lib/pages/SearchDelegate.dart b/covas_mobile/lib/pages/SearchDelegate.dart index 3e5d3b5..e49b17e 100644 --- a/covas_mobile/lib/pages/SearchDelegate.dart +++ b/covas_mobile/lib/pages/SearchDelegate.dart @@ -84,7 +84,7 @@ class SearchDelegateExample extends SearchDelegate { var accessToken = prefs.getString("access_token") ?? ""; final List body = []; if (accessToken.isNotEmpty) { - DateTime currentDate = new DateTime.now(); + DateTime currentDate = DateTime.now(); var url = Uri.parse( "${globals.api}/events/search?item=${query}¤t_dateime=${currentDate.toString()}"); if (geoQuery.isNotEmpty) {