Feeling a bit puzzled about my Laravel 8 application. I store time in UTC with timestamp_no_timezone in my PostgreSQL database. When I check the time in the database, it displays today's date with 13:45 as the time. However, when I use vue-moment and set the timezone to America/New_York, it still shows 1:45 PM instead of the expected 8:45 AM with the offset. What could be causing this issue? I even checked the timezone from moment using console.log and it confirmed America/New_York.
Here is the expression I am currently using:
{{ [ timesheet.start, "YYYY-MM-DD HH:mm:ss" ] | moment("timezone", "America/New_York", "h:mm A") }}