Skip to main content

Saving the time stamp

  • July 10, 2022
  • 5 replies
  • 26 views

Forum|alt.badge.img+2

Hello,
Whenever I'm calling this fetch timestamp siemplify.fetch_timestamp(datetime_format=True, timezone=False) function after saving the time stamp using siemplify.save_timestamp(datetime_format=True, timezone=False, new_timestamp=unix_now()) it's working fine but after the loop is running fresh its giving me "1970-01-01 00:00:00+00:00" this time. Any idea why?

5 replies

  • July 10, 2022

Are you testing it in the IDE or in the connectors tab?


Forum|alt.badge.img+2
  • Author
  • New Member
  • July 10, 2022

@Yair Stern I'm testing in the IDE


  • July 10, 2022

I am fairly positive its fresh run every time there. When you say it works fine after saving, you mean in the same iteration?


Forum|alt.badge.img+2
  • Author
  • New Member
  • July 10, 2022

@Yair Stern yes, it's working fine in the same iteration.


  • July 10, 2022

Please try the following...:

As mentioned earlier, I am pretty sure that the timestamp is saved per connector instance and the IDE is producing a fresh instance every time you hit the play button