Skip to content

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

@anonymous-matomo-user

Description

@anonymous-matomo-user

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

Metadata

Metadata

Assignees

Labels

BugFor errors / faults / flaws / inconsistencies etc.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions