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 8749823
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:45:32+00:00 2026-06-13T12:45:32+00:00

I insert an event with Google Calendar API for Python client and somehow the

  • 0

I insert an event with Google Calendar API for Python client and somehow the time there is 1 hour later than intended.

Here’s the snippet.
Imports:

import gdata.calendar.data
import gdata.calendar.client
import gdata.acl.data
import atom.data

Connect to the Google Calendar:

calendar_client = gdata.calendar.client.CalendarClient(source='noApp')
calendar_client.ClientLogin('account@gmail.com', 'password', calendar_client.source)

Create event:

event = gdata.calendar.data.CalendarEventEntry()
date='2012-10-29T18:30:00.001Z' # This is the time of event that I want to insert
event.when.append(gdata.calendar.data.When(start=date))

And finally, insert the event

new_event = calendar_client.InsertEvent(event)

As a result I have in the calendar the time 19:30 on 29-th of October, and not 18:30.
I tried to change the time zone to ‘000Z’ instead of ‘001Z’ in the date variable, but it didn’t help.
Of course, I can subtract an hour in advance, but why does it happen?

  • 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-13T12:45:33+00:00Added an answer on June 13, 2026 at 12:45 pm

    18:30:00.000Z and 18:30:00.001Z are given in the same timezone, namely Z for UTC, but separated by one millisecond — since the 0 you changed to 1 was in the fractional seconds part of the timestamp.

    If you want to give the API times in CET rather than UTC, you could try something like 2012-10-29T18:30:00+01:00 (if the API supports RFC-3339 timestamps). Or, if that doesn’t work, convert your desired time to UTC first.

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

Sidebar

Related Questions

I'm trying to use the google GData api to insert an event in a
I'm trying to insert a new event into Google Calendar, which I can do
I'm trying to insert the description of an event in google calendar from my
I tried the calendar insert example from here : https://developers.google.com/google-apps/calendar/v3/reference/events/insert#examples No matter which property
Any clues why the button click event doesn't insert script succesfully? Here is the
I am Setting Google Calendar via python command like this def _InsertQuickAddEvent(self, content=Tennis with
Cannot read records after inserting to google calendar. Some time letter, records are read.
I'm trying to import an event into my Google Calendar account, however my code
Using the Google Calendar Api . After browsing the rfc2445 , I'm still unable
I'm trying to use the Google Calendar API in my own Java class. Unfortunately,

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.