@anonymous-piwik-user opened this Issue on February 23rd 2014

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 commented on February 27th 2014 Owner

Thanks for the report!

@tsteur commented on May 5th 2014 Owner

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

@tsteur commented on May 5th 2014 Owner

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

This Issue was closed on May 5th 2014
Powered by GitHub Issue Mirror