Skip to content

Instantly share code, notes, and snippets.

@abelsromero
Created November 12, 2015 10:53
Show Gist options
  • Save abelsromero/b5abafbedae1136a6f97 to your computer and use it in GitHub Desktop.
Save abelsromero/b5abafbedae1136a6f97 to your computer and use it in GitHub Desktop.
Dynamic timestamp for CMIS in SoapUI: sets the timezone to ensure no problem occurs if the server is in another timezone
<wsu:Timestamp wsu:Id="TS-AD11234F3B4CF74705144725809787932">
<wsu:Created>${=TimeZone.setDefault(TimeZone.getTimeZone("UTC")); (new Date()).format("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")}</wsu:Created>
<wsu:Expires>${=(new Date()).format("yyyy-MM-dd'T23:59:59.999Z'")}</wsu:Expires>
</wsu:Timestamp>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment