fix current date #13
@ -100,7 +100,7 @@ class _MyHomePageState extends State<ListItemMenu> {
|
||||
var accessToken = prefs.getString("access_token") ?? "";
|
||||
final List<Events> 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: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user