Local DateTime Selector with Phoenix

Originally published at: Local DateTime Selector with Phoenix | Stereowrench

At some point or another you’re going to need to add a datetime selector to a form in Phoenix. Unfortunately, timezones exist! This post should show you how to keep all timezones managed by Phoenix in UTC and allow the user to modify the timezone in their locale. First, add a virtual :utc_datetime field to…