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
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