how do I know that other user is using different time zone in ax 2012?

Hi,

Is there any method to find that one of the other user is using different time zone using X++ ?

Thanks.

static void Job27(Args _args)
{
UserInfo userinfo;

while select userinfo
{
if(userinfo.preferredTimeZone != Timezone::GMTPLUS0530CHENNAI_KOLKATA_MUMBAI)
{
info(strFmt("%1",userinfo.id));
}
}

}

Try the above example and GMTPLUS0530CHENNAI_KOLKATA_MUMBAI is to which you must the compare the User’s timezone