I was wondering what area it makes sense to convert dates to UTC and vice versa. We save the dates in UTC and convert users to the local time zone. Right now, I think that embedding in the repository layer makes the most sense, because you do not need to remember its conversion every time you create service level methods that require it. My teammate suggests putting him at the service level because this is a business rule ...
Where would you put this conversion function? Service level or repository level? This may include looping through a list of objects and transforming on each of them.
chobo source share