<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: WSChains timestamp in ISO format in PAM Self-Hosted Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/wschains-timestamp-in-iso-format/m-p/1421957#M88732</link>
    <description>&lt;P&gt;Use a Script: You can create a script to generate the current datetime in ISO format and include it in your WSChains XML. Here's an example using Python:&lt;/P&gt;&lt;P&gt;from datetime import datetime&lt;/P&gt;&lt;P&gt;import pytz&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# Get the current time in UTC&lt;/P&gt;&lt;P&gt;now = datetime.now(pytz.utc)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# Format the datetime in ISO 8601 format&lt;/P&gt;&lt;P&gt;iso_format = now.isoformat()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;print(iso_format)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;This script will output the current datetime in the required ISO format, which you can then include in your WSChains XML.&lt;/LI&gt;&lt;LI&gt;Include in WSChains XML: You can embed the generated datetime in your XML as follows:&lt;/LI&gt;&lt;LI&gt;&amp;lt;WSChains&amp;gt;&lt;/LI&gt;&lt;LI&gt;    &amp;lt;Timestamp&amp;gt;{{iso_format}}&amp;lt;/Timestamp&amp;gt;&lt;/LI&gt;&lt;LI&gt;    &amp;lt;!-- Other elements --&amp;gt;&lt;/LI&gt;&lt;LI&gt;&amp;lt;/WSChains&amp;gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;perhaps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Feb 2025 13:12:46 GMT</pubDate>
    <dc:creator>RobertS_Cyberark</dc:creator>
    <dc:date>2025-02-27T13:12:46Z</dc:date>
    <item>
      <title>WSChains timestamp in ISO format</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/wschains-timestamp-in-iso-format/m-p/1421956#M88731</link>
      <description>&lt;P&gt;Hi community,&lt;/P&gt;&lt;P&gt;anyone figured already out how to get the actual datetime (aka now) in ISO format "2025-01-31T00:10:09.334Z" in WSchains xml?&lt;/P&gt;&lt;P&gt;I would need that to send in a json.&lt;/P&gt;&lt;P&gt;&lt;A alt="https://community.cyberark.com/s/question/0D7Vy000006J9XBKA0" href="https://community.cyberark.com/s/question/0D7Vy000006J9XBKA0" target="_blank"&gt;original post&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 14:43:42 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/wschains-timestamp-in-iso-format/m-p/1421956#M88731</guid>
      <dc:creator>balazs_racz</dc:creator>
      <dc:date>2025-02-20T14:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: WSChains timestamp in ISO format</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/wschains-timestamp-in-iso-format/m-p/1421957#M88732</link>
      <description>&lt;P&gt;Use a Script: You can create a script to generate the current datetime in ISO format and include it in your WSChains XML. Here's an example using Python:&lt;/P&gt;&lt;P&gt;from datetime import datetime&lt;/P&gt;&lt;P&gt;import pytz&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# Get the current time in UTC&lt;/P&gt;&lt;P&gt;now = datetime.now(pytz.utc)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# Format the datetime in ISO 8601 format&lt;/P&gt;&lt;P&gt;iso_format = now.isoformat()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;print(iso_format)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;This script will output the current datetime in the required ISO format, which you can then include in your WSChains XML.&lt;/LI&gt;&lt;LI&gt;Include in WSChains XML: You can embed the generated datetime in your XML as follows:&lt;/LI&gt;&lt;LI&gt;&amp;lt;WSChains&amp;gt;&lt;/LI&gt;&lt;LI&gt;    &amp;lt;Timestamp&amp;gt;{{iso_format}}&amp;lt;/Timestamp&amp;gt;&lt;/LI&gt;&lt;LI&gt;    &amp;lt;!-- Other elements --&amp;gt;&lt;/LI&gt;&lt;LI&gt;&amp;lt;/WSChains&amp;gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;perhaps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 13:12:46 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/wschains-timestamp-in-iso-format/m-p/1421957#M88732</guid>
      <dc:creator>RobertS_Cyberark</dc:creator>
      <dc:date>2025-02-27T13:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: WSChains timestamp in ISO format</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/wschains-timestamp-in-iso-format/m-p/1421958#M88733</link>
      <description>&lt;P&gt;Hi, thank you for your reply.&lt;/P&gt;&lt;P&gt;Questions:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;how will the python script be called?&lt;/LI&gt;&lt;LI&gt;the python simply prints to output, so how will that output be stored accessible for WSChains as "iso_format"?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The password management process will only call the CANetPluginInvoker.exe with the WSChains dll.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With powershell I could get it like this: &lt;/P&gt;&lt;CODE&gt;(Get-Date).ToUniversalTime().ToString("yyyy-MM-ddTHH:mm:ss.fffK")&lt;/CODE&gt;&lt;P&gt;&amp;nbsp;@Robert Stothard​&amp;nbsp;?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 14:06:35 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/wschains-timestamp-in-iso-format/m-p/1421958#M88733</guid>
      <dc:creator>balazs_racz</dc:creator>
      <dc:date>2025-02-27T14:06:35Z</dc:date>
    </item>
  </channel>
</rss>

