I live in Brazil (UTC offset of - 3:00) and here we have something called daylight saving time, where at some times of the year the clocks are advanced by 1 hour.
What happens is that I have a whole spreadsheet ready to filter data in the England time zone.
I had a big problem today because Google's times have changed and my data has been filtered the wrong way.
My original formula in script was:
spreadsheet.getCurrentCell().setFormula('=text(now()+"5:00","yyyy/mm/dd hh:mm")');
And now many hours later I realized the failure and needed to switch to:
spreadsheet.getCurrentCell().setFormula('=text(now()+"4:00","yyyy/mm/dd hh:mm")');
So that this no longer happens, I would like to know how I could add the England time zone within the NOW () function.
I tried:
spreadsheet.getCurrentCell().setFormula('=text(now("UK"),"yyyy/mm/dd hh:mm")');
But failed to return. I use a trigger every 1 minute to update the time in the spreadsheet, I would like to know what I could do to solve this problem.
Detail: I could change the time in the spreadsheet settings, but I need it saved in local time.