Oh hello @Calle_Stalhem
I agree that Coda should detect the time zone.
Meanwhile, I’ve done the following:
First, compare your offset compared to PST (PST = UTC-8, check this list of UTC offsets).
Create a named formula on the canvas by typing “=” and entering “Hours(9)”, or whatever the UTC offset is. Name the formula something like offsetFromPST by clicking the down arrow in the formula window.
Do the same with:
offsetFromDaylightSavings = Hours(0)
totalTimeZoneOffset = Sum(offsetFromPST,offsetFromDaylightSavings)
nowLocal = Now()+totalTimeZoneOffset
nowLocal, which you can use anywhere, just like Now(), should correpsond to the time on your computer. If not, it’s either the UTC adjustment that is off or you’re in one of the periods when daylight savings isn’t matching in the zones. If so use the offsetFromDaylightSavings for that adjustment. I have a super complicated soulution that calulates the daylight savings offset automatically, but it only works for Sweden, so I won’t share it here