Timezone vs Time functions
Created at 21 Nov 2017, 22:13
Timezone vs Time functions
21 Nov 2017, 22:13
Hi all,
I have been trying to piece the puzzle together slowly but could use some guidance now. If I were to set a timezone on a cbot using
[Robot(TimeZone = TimeZones.TasmaniaStandardTime, AccessRights = AccessRights.None)]
then does that make all time based calculations follow that? Say for instance I am using
_BBMstartTime = Server.Time.Date.AddHours(BBMStartTime);
Does that refer to Server time which is UTC+0 or do I base my numbers off my local timezone that was set at the start of the robot.
Any help on this topic or input is much appreciated.
Thanks,
Tony
PanagiotisCharalampous
22 Nov 2017, 11:25
Hi hungtonydang,
The Server Time will always return the time based on the timezone set for the cBot. In the case you described above, it will be Tasmania Standard Time.
Best Regards,
Panagiotis
@PanagiotisCharalampous