Query on sysevent table in a Scheduled job with run as System Administrator returns incorrect value

Amit Kumar21
Tera Contributor

AmitKumar21_0-1703671280727.png

when run this query returns different set of records, which upon checking on table shows that all the records with "name=impersonation.start" is returned.

but when i run the same query with Run as my name(which also had admin role), it returns the correct values i.e "name=impersoantion.start" and created yesterday.

AmitKumar21_1-1703671480262.png

 

Has anyone faced this and how can it be resolved?

1 ACCEPTED SOLUTION

Saurabh Gupta
Kilo Patron
Kilo Patron

Hi,
Time zone of both users is same?



Thanks and Regards,

Saurabh Gupta

View solution in original post

2 REPLIES 2

Saurabh Gupta
Kilo Patron
Kilo Patron

Hi,
Time zone of both users is same?



Thanks and Regards,

Saurabh Gupta

Hi,

No, Timezones are different. I think that is the issue. Since few records were create late in the night with CET and they are showing in created today, for my user(in IST).

Thanks.