AnsweredAssumed Answered

API Gateway Time-Variable has wrong year on 30 and 31 of december

Question asked by Andi13 on Jan 8, 2019
Latest reply on Jan 17, 2019 by Andi13

We have a service on the apigw where we must use a date in the following format: YYYY-MM-DD+01:00 (date with timezone). For this we use the api gateway variable ${gateway.time.+01.YYYY-MM-ddX:00}. This actually works fine the whole year, but only on the 30 or 31 of december it does not return the right date.


If the unixtime is set to 30.12.2018 it should return 2018-12-30+01:00 but instead it returns 2019-12-30+01:00 (wrong year).


We also use another variable which works on all dates: ${gateway.time.CET.iso8601}, here it returns the correct year: 2018-12-30T12:27:23.754+01:00.


To recreate it, set your unixtime to the 30 or 31 of december and use the testservice which I attached.

Is there any workaround for this bug?


Thanks in advance!