You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Difference in expiration date format in the public link and share #5452
while I was creating api test #5424 where I check expiration date I came across the difference in expiration date
Steps:
as admin share resources with expiration date:
Actual:
share:
If I set expireDate=2042-03-25T23:59:59+0100 with timezone -> I get in response same expire date 2042-03-25T23:59:59+0100 locally. but response contains another value in CI 2042-03-25T22:59:59Z and test fails
if I set expireDate=2042-03-25T23:59:59 without timezone or without time -> I get 400 with <message>could not parse expireDate</message>
public link:
If I set expireDate=2042-03-25T23:59:59+0100 in the body -> I get <expiration>2023-01-27 22:59:59</expiration> in response
if I set expireDate=2042-03-25 without time and timezone -> I get 200 with <expiration>2023-01-28 00:00:00</expiration>
My questions:
what date format do we expect in the request body?
what date format do we expect in response?
should data formats be identical for public link and share?
Activity