Merge pull request 'fix current date' (#13) from feature/getcurrentdate into main
Reviewed-on: #13
This commit is contained in:
commit
701f6dbacf
@ -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