For web service, sometimes we are pulling some data from database and it needs some minor tweaking(eg. DB: UTC-09:00 -> frontend: (UTC-09:00) Alaska). I was wondering where is a good place to put the two-way mapping? Front-end vs Back-end?
It feels easier to do it in the front-end as we can put tags to replace the content during the page rendering and when the data is being sent back, the backend data is intact and can be directly consumed by database. In the above example we are basically providing a drop down list for user to choose from. We want to add countries to the time zone offset while still keeping the original format in the database.
Thanks!