Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有域类并且有一个 Date 类型的属性 DOB,当我通过域类对象访问它时,它显示 +1 到 DB 中的实际日期。我在 yui 数据表中显示我的所有数据。
我不知道它的确切原因。请你给它的原因
我怀疑这个问题是因为时区。特别是如果您将日期保存为时间 00:00:00。
您可以使用时区吗,并且最好将日期存储在指定的时区 (GST) 中,并在读取时转换为用户当前时区。