Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Apigee X timeFormatMs

timeFormatMs() function doesn't work in Apigee X, is there any workarroung?

I'm trying:

<Payload contentType="text/plain">
timeFormatMs: {timeFormatMs('yyyy-MM-dd',system.timestamp)}
</Payload>

 

Solved Solved
0 8 316
1 ACCEPTED SOLUTION

Hmmm... I'm sorry.

I am surprised to report that I looked into the defect database and found b/221768756 (this is an internal reference, not resolvable by you).  Which states that timeFormatMs is failing. Are you using Apigee hybrid?  The bug has been fixed in Apigee X but as of v1.7.0, the fix is not yet released in hybrid. It will be in the next (dot) release of hybrid. 

The workaround is to build the capability yourself in a JavaScript, I suppose. 

 

View solution in original post

8 REPLIES 8