Skip to content

Commit b9b3c8b

Browse files
committed
Fix date formatting in query filters to use date object directly
* Pass the timezone-aware datetime object directly to the __gte filter instead of converting it to a naive date string with .date().isoformat()
1 parent 4bd4563 commit b9b3c8b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cli/polyaxon/_pql/builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ def _eq_operator(name: str, params: Any, query_backend: Any, timezone: str) -> A
287287
if params == "last_month":
288288
params_value = get_datetime_from_now(days=30)
289289
filters = {
290-
f"{name}__gte": params_value.date().isoformat(),
290+
f"{name}__gte": params_value.date(),
291291
}
292292
return query_backend(**filters)
293293
try:

0 commit comments

Comments
 (0)