I have a line that sets the current date and time in a cell:
sheet.getRange(1,1).setValue(new Date());
Then I have a line that creates a f
You can directly get the spreadsheet Time Zone like this :
var addedDate = sheet.getRange(1,1).getValue();
var addedTime = Utilities.formatDate(addedDate, SpreadsheetApp.getActive().getSpreadsheetTimeZone(), "hh:mm a");
See doc here
but Google Apps Script uses these formats if you want to choose it yourself :
http://joda-time.sourceforge.net/timezones.html