Details
-
Type:
New Feature
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Won't Fix
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: ORM
-
Security Level: All
-
Labels:None
Description
I'm working on a project that will live on multiple servers in multiple time zones and it would be great if I could tell Doctrine2, either through mappings or some other means, that all dates going into the DB should be normalized to a given time zone (such as GMT) and then be changed back to the servers local time on select. This can be accomplished using events right now but might be useful for other people in the same boat as me.
Attached is a sample DateTimeType class I modified to do this. This is a quick, dirty, solution but illustrates the idea.