I ran into this bug on adflow/spot as well after porting over the TimeAgo Pipe for use there. My fix on adflow/spot was to assume the updated_at was in UTC, and convert it toLocale before setting it as the updatedAt of the campaign model. But since then I've learned that Phoenix saves timestamps as "timestamp without time zone", and it's a little unpredictable what time zone it will actually represent. So I think it might be best to just cast them as UTC all the time. But -- open to other suggestions!
I ran into this bug on adflow/spot as well after porting over the TimeAgo Pipe for use there. My fix on adflow/spot was to assume the updated_at was in UTC, and convert it toLocale before setting it as the updatedAt of the campaign model. But since then I've learned that Phoenix saves timestamps as "timestamp without time zone", and it's a little unpredictable what time zone it will actually represent. So I think it might be best to just cast them as UTC all the time. But -- open to other suggestions!