Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Annotations API – "date=today" is not resolved to actual date #4741

Closed
anonymous-matomo-user opened this issue Feb 23, 2014 · 3 comments
Assignees
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@anonymous-matomo-user
Copy link

When you create a new annotation via the Annotations API, a relative date "today" is not resolved to the actual date when the annotation is written, but continues to be shown on the current day.

Steps to reproduce:

curl "http://YOUR_PIWIK_DOMAIN/?module=API&
method=Annotations.add&
idSite=YOUR_SITE_ID&
date=today&
note=2013-02-23&
&token_auth=YOUR_SECRET_API_TOKEN"

Expected: "today" is resolved to 2013-02-23.
Actual: If you look at the backend a few days later, the annotation is shown for the current day.

Keywords: annotations, api

@mattab
Copy link
Member

mattab commented Feb 27, 2014

Thanks for the report!

@tsteur
Copy link
Member

tsteur commented May 5, 2014

In ab9af61: fixes #4741 date=today is not resolved to actual date in annotations API

@tsteur
Copy link
Member

tsteur commented May 5, 2014

In eb77470: fixes #4741 also support date=today for update method

@anonymous-matomo-user anonymous-matomo-user added this to the 2.2.1 - Piwik 2.2.1 milestone Jul 8, 2014
@tsteur tsteur modified the milestones: 2.4.0 - Piwik 2.4.0, 2.2.1 - Piwik 2.2.1 Jul 11, 2014
sabl0r pushed a commit to sabl0r/piwik that referenced this issue Sep 23, 2014
sabl0r pushed a commit to sabl0r/piwik that referenced this issue Sep 23, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

No branches or pull requests

3 participants