Modifying every DateTime instance in Model (Server Time to Client Time)

tictic

New Member
Is there way to modify every DateTime instance that gets from controller to view?I have datetime saved on server in UTC timezone. But in browser I need to show date in client timezone.So every time I have to manually convert datetime in clients timezone:\[code\]model.DateCreated = ConvertToClientTimeZone(model.DateCreated)\[/code\]This is not comfortable. So i'm asking about possible way to do this conversion automatically?
 
Back
Top