Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7763243
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T14:36:41+00:00 2026-06-01T14:36:41+00:00

i am working on script which creates events in Google Calendar from data in

  • 0

i am working on script which creates events in Google Calendar from data in SpreadSheet. Following code creates events
in default calendar.

function myFunction() {
  cal = CalendarApp.getDefaultCalendar();
  cal.createEvent(
      'Single day', 
      new Date("October 25, 2011 15:00:00 EST"), 
      new Date("October 25, 2011 16:00:00 EST"), 
      {}
  );
  cal.createAllDayEvent('All day', new Date("October 25, 2011"), {});
}

The problem is, it creates the events at wrong timing. The all day event is created OK of course

Single day event with EST timezone code
All day event

I guess i am supposed to use another timezone code, but when i use CET it creates the event in the begining of epoch

function myFunction() {
  cal = CalendarApp.getDefaultCalendar();
  cal.createEvent(
      'Single day', 
      new Date("October 25, 2011 15:00:00 CET"), 
      new Date("October 25, 2011 16:00:00 CET"), 
      {}
  );
  cal.createAllDayEvent('All day', new Date("October 25, 2011"), {});
}

Event created with CET timezone code

And again all day event is OK, becouse i don’t use any time zone code.

Format of Date contructor i found here http://code.google.com/intl/cs-CZ/googleapps/appsscript/class_calendar.html#createEvent

So my question is what’s the correct code for Central European Time ? Better could be reference for page with these codes.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T14:36:42+00:00Added an answer on June 1, 2026 at 2:36 pm

    CET is the correct abbreviation for Central European Time.

    It sounds like you found a bug, please file it on the Apps Script Issue Tracker.

    Best,

    Anton

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following script, which is working for the most part Link to
I'm working with a script in which the postid of the page has been
I have a working script from someone, there in is this line: this.event =
Right now, I have code which creates the database (just a few CREATE queries
I have a backup script which copies a file via ssh and creates a
I have a Google calendar embedded on a webpage, with events related to activities
I made some CMS in PHP which manipulates with data from MySQL. In my
I've got a little script which is not working nicely for me, hope you
I've got a script which creates a graph, but the script keeps running in
I have a script working well for creating ad hoc iPhone builds. I can

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.