In BC, datetimes are stored in UTC (as they should be). The client converts them to the local timezone on the fly.
When debugging, it is important to see the values that a variable has. However, when debugging AL in VSCode, datetime values are converted to the local timezone like in the client. This can make calculation very confusing. I think the AL debugger should show datetimes in their actual values and not the converted values; at the very least, it should be configurable.
Comments
This would be great. It's often confusing trying to understand what the actual stored time is when conversions are automagically applied. It would be better to not have those.
Category: Development
Business Central Team (administrator)
Thank you for this suggestion! Currently this is not on our roadmap. We are tracking this idea and if it gathers more votes and comments we will consider it in the future. Best regards, Business Central Team