0

我有一个 .net 应用程序,它作为单独的业务对象层、数据访问层和 UI。所有这些都分布在不同的解决方案文件中,因为中间层会根据需要重复使用。我们在 UI 层、业务对象层、数据访问层中设置了一些日期。现在我们正计划实施本地化,因为我们正在将其推广到多个位置。最好的方法是什么,我不想找到我们在所有图层中设置日期的位置并将它们更改为设置在一个公共位置,这是一种麻烦的方法。在不更改代码的情况下以最佳方式实现此目标的任何建议。应用程序在 windows 和 web 版本。

4

1 回答 1

0

Assuming you are saving dates in date objects you should not have any problems. The translation is made on the local computer. Each computer has its own regional settings, but they will stored the same in a datetime object. If have multiple timezones, you should first findout what the business requirements are for displaying the date/time (local or place of origin etc).

于 2013-06-12T15:14:58.397 回答