fix datetime
This commit is contained in:
parent
a427fc5edf
commit
76ab0aef48
@ -84,7 +84,7 @@ class SearchDelegateExample extends SearchDelegate {
|
|||||||
var accessToken = prefs.getString("access_token") ?? "";
|
var accessToken = prefs.getString("access_token") ?? "";
|
||||||
final List<Events> body = [];
|
final List<Events> body = [];
|
||||||
if (accessToken.isNotEmpty) {
|
if (accessToken.isNotEmpty) {
|
||||||
DateTime currentDate = new DateTime.now();
|
DateTime currentDate = DateTime.now();
|
||||||
var url = Uri.parse(
|
var url = Uri.parse(
|
||||||
"${globals.api}/events/search?item=${query}¤t_dateime=${currentDate.toString()}");
|
"${globals.api}/events/search?item=${query}¤t_dateime=${currentDate.toString()}");
|
||||||
if (geoQuery.isNotEmpty) {
|
if (geoQuery.isNotEmpty) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user