Javascript Policy

How to convert UTC to EST in apigee using JavaScript policy

0 2 101
2 REPLIES 2

Irrespective of Apigee, Converting times is tricky.

You need to know the timezone and the daylight savings status.  Here's a related discussion of the issue.

My advice would be to delay or defer conversion of times, and allow the client to perform that work.  The client = the browser, or some other system. 

What are you really trying to do?  Why do you need to convert a time from one timezone to another?

 

 

I am using EST timezone to restrict quota between 12am to 6am and apigee returned the time in UTC . I wanted to do same in day light saving time as well.