Kentico DateTime Web部件不使用自定义时区

Kentico DateTime Web部件不使用自定义时区,kentico,Kentico,我已经设置了kentico 11,我想显示与本地时间的时差。我使用了DateTime Web部件,但时间仍然来自我的本地时间。我在Web部件中的配置 我住在柬埔寨,我想在“阿布扎比,马斯喀特”展示时间 如果有人能帮我解决这个问题,我将不胜感激 提前谢谢你 现在我要解决我的问题了 {% String.FormatString("{0:hh:mm tt, MMMM d, yyyy}", DateTime.UtcNow.AddHours(4)) #%} {% String.FormatString(

我已经设置了kentico 11,我想显示与本地时间的时差。我使用了DateTime Web部件,但时间仍然来自我的本地时间。我在Web部件中的配置

我住在柬埔寨,我想在“阿布扎比,马斯喀特”展示时间

如果有人能帮我解决这个问题,我将不胜感激


提前谢谢你

现在我要解决我的问题了

{% String.FormatString("{0:hh:mm tt, MMMM d, yyyy}", DateTime.UtcNow.AddHours(4)) #%}
{% String.FormatString("{0:hh:mm tt, MMMM d, yyyy}", DateTime.UtcNow.AddHours(4)) #%}