Why do two different times return for the same function/line of code in two applications?
We have two applications (For example, Application X-Development and Application X-Testing). When we sign in as the same user (both users are exactly the same in both applications) that have the same calendar setup (same time zones), we are running a call to @DateTime.CurrentDateTime(). This returns the same values in both application as can be seen on the clipboard. However, when we display these values to the user, one value displays as one hour less than the other. With the example applications, X-Development would display 3:00PM while X-Testing displays the proper time as 4:00PM when calling @DateTime.CurrentDateTime() at 4:00PM. These date times are using the GMT timezone tag at the end of their datetime timestamp as well.
What could be causing these two applications to produce different results when we display the value to the user? There are no rules that alter the properties that store @DateTime.CurrentDateTime() and the property is the same for both applications (example .CurrentTimeStamp is set to @DateTime.CurrentDateTime()). The formatting when we display the date time is the same for both applications as well. Pretty much everything that I can see as a developer within both applications seems to be the same, just want to know if anyone has some insight as to why two separate values may be returning in two applications if both seem to be coded out exactly the same.
***Edited by Moderator Marissa to update categories***