From 8b1db195d76884ba1b9e4c9d7d6c00a86b21398d Mon Sep 17 00:00:00 2001 From: Valentin CZERYBA Date: Mon, 11 Nov 2024 11:52:21 +0100 Subject: [PATCH] fix current date --- covas_mobile/lib/pages/ListItemMenu.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/covas_mobile/lib/pages/ListItemMenu.dart b/covas_mobile/lib/pages/ListItemMenu.dart index 7539574..04761d1 100644 --- a/covas_mobile/lib/pages/ListItemMenu.dart +++ b/covas_mobile/lib/pages/ListItemMenu.dart @@ -100,7 +100,7 @@ class _MyHomePageState extends State { var accessToken = prefs.getString("access_token") ?? ""; final List body = []; if (accessToken.isNotEmpty) { - DateTime currentDateTime = new DateTime.now(); + DateTime currentDateTime = DateTime.now(); var url = Uri.parse( "${globals.api}/events?current_datetime=${currentDateTime.toString()}"); final response = await http.get(url, headers: { -- 2.47.1