Skip to content

Update error message in API/UI if date is before 1992 #12559

@simivar

Description

@simivar

Hello,

there's an error in Live.getLastVisitsDetails API. When you choose date by range and starting date lower than 1992-01-01 you get an error message:

{"result":"error","message":"Date format must be: YYYY-MM-DD, or 'today' or 'yesterday' or any keyword supported by the strtotime function (see http:\/\/php.net\/strtotime for more information): 662688000"}

when in fact that date is supported by strtotime function: https://3v4l.org/tmaBQ

URL to which I send a request, change [$AUTH] and [$USER_ID]:
https://aitnet.com.pl/analysis/?module=API&method=Live.getLastVisitsDetails&token_auth=[$AUTH]&idSite=4&period=range&format=json&language=en&segment=userId%3D%3D[$USER_ID]&date=1991-12-31,2018-02-14

Metadata

Metadata

Assignees

No one assigned

    Labels

    Help wantedBeginner friendly issues or issues where we'd highly appreciate community's help and involvement.c: UsabilityFor issues that let users achieve a defined goal more effectively or efficiently.not-in-changelogFor issues or pull requests that should not be included in our release changelog on matomo.org.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions