Layer7 API Management

  • 1.  How to change the default timezone of CA API Gateway

    Posted Mar 15, 2018 10:27 AM

    Currently, if we use the ${gateway.time} or ${request.time} the value returned is in the GMT timezone. Even though the timezone is setup as the CST during the installation, timezone still shows in the GMT. Is there a way we can change this? This is a problem since API Portal analytics use ${gateway.time.millis} and ${request.time.millis} from the gateway, all the analytics are shown out of sync to the current timezone.

     

    Appreciate your help!



  • 2.  Re: How to change the default timezone of CA API Gateway

    Broadcom Employee
    Posted Mar 15, 2018 02:05 PM

    Hi Sravan,

     

    You can try using ${request.time.local} and ${gateway.time.local}

     

     

    Regards,

    Joe



  • 3.  Re: How to change the default timezone of CA API Gateway

    Posted Mar 15, 2018 02:11 PM

    Hi Joe,

    Thank you for the reply!

    But ${request.time.local} and ${gateway.time.local} doesn't give the time in milliseconds which is only possible with the ${request.time.millis} or ${gateway.time.millis}

     

    Thanks!



  • 4.  Re: How to change the default timezone of CA API Gateway
    Best Answer

    Broadcom Employee
    Posted Mar 15, 2018 03:07 PM

    I'm not sure if there is any other setting or CWP to affect this. As a possible workaround though maybe set a context variable to ${gateway.time.local} and they reference it as ${mytime.millis}