Skip to main content
Solved

Décalage horaire sur les downtimes appliqués en RestApi v2

  • May 17, 2022
  • 2 replies
  • 178 views

Forum|alt.badge.img+2

Hello,

 

When I apply a downtime on a Centreon host in REST V2 API, I have a 2h time difference.

I don't find this time difference when using CLAPI (or REST API V1)

 

The user with whom I generated an API token has a Europe/Paris timezone configured in his profile.

 

It looks very strongly like a timezone problem but I don't see where to fix it, do you know where it could come from? Do you have the same behavior on your Centreon platform?

 

Thanks and regards

Best answer by qleg

The API requires an ISO8601 format for the dates.

Example: 2022-04-07T15:00:00+02:00

Resolved

2 replies

fgbetokpanou
Centreonian
Forum|alt.badge.img+11
  • Centreonian
  • May 17, 2022

Hi @qleg, Please ask your problem in English. This will help all other non-french speaking users who have the same issue to benefit from the solutions that will be proposed. Thank you for your understanding 😊


Forum|alt.badge.img+2
  • Author
  • Steward *
  • Answer
  • May 20, 2022

The API requires an ISO8601 format for the dates.

Example: 2022-04-07T15:00:00+02:00

Resolved