Dependency cycle found issue with date format

Hi Team,

For logging purpose, i need exact date and time as well hence used below format.

Due to this, it is throwing Dependency cycle found issue.
Please help me to fix this issue.
Thanks in advance.

Here is my code and error screen shots.

In my investigation I found this error is because of self, if I didn't add self, UTC time is getting saved however here I need to save local time.


Hi @lalitha1024 I'm guessing that self is evaluating to an object with all of the query properties. It looks like .utc() is expecting a boolean - either .utc(false) or .utc(true), have you tried this already?

Thank you Tess.
It's working.

Thanks a lot,

1 Like