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

  • SEARCH
  • Home
  • 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 5990741
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T23:17:15+00:00 2026-05-22T23:17:15+00:00

I’m writing a Plone product that takes iCalendar , pulls it in, and creates

  • 0

I’m writing a Plone product that takes iCalendar, pulls it in, and creates Plone Event types. I’ve got it all working perfectly, except that, for half of the year’s dates, the timestamps are off by an hour.

My iCalendar feed is passing these as UTC timestamps:

DTSTART;VALUE=DATE:20110812T130000Z should be 9am in the America/New_York timezone
DTEND;VALUE=DATE:20110812T160000Z should be 12noon in the America/New_York timezone

Those work fine. These don’t:

DTSTART;VALUE=DATE:20111225T175525Z should be 1:55pm, but it’s showing as 12:55pm
DTEND;VALUE=DATE:20111225T215525Z should be 5:55pm, but it’s showing as 4:55pm

Screenshot of Plone showing incorrect EDT event time
From the database that generates the iCalendar feed, to the iCalendar generator, to the actual values stored in Zope, everything is correct. But Plone displays the incorrect localtime on the event detail pages.

I’ve tried setting “TZ America/New_York” in my buildout, I’ve tried setting the system clock on the Zope server ahead to see if the conversion would magically happen “after we return to EST”. No luck.

Here’s a couple of examples that might illustrate the problem:

Correctly-Displaying Event, which takes place in EDT:

 BEGIN:VEVENT
DESCRIPTION:Flyer Fridays give you the opportunity to hear from professors
  in Communication Sciences & Disorders\, Education\, Management\, Nursing\
 , Physical Therapy\, Occupational Therapy or Visual & Performing Arts.  \n
 \nFaculty sessions begin at 9:15am (PLEASE CHOOSE ONE)\, followed by a 10a
 m campus tour and an 11am Freshmen information session.  After the day's e
 vents\, you're invited to join the Admissions staff for lunch.
DTEND;VALUE=DATE:20110812T160000Z
DTSTART;VALUE=DATE:20110812T130000Z
LOCATION:Nazareth College
SUMMARY:Flyer Friday - Management Info Session
UID:ug-flyerfriday-164
END:VEVENT

And, how it is stored in Zope:

>>> app.Plone.events['ug-flyerfriday-164'].startDate
DateTime('2011/08/12 13:00:00 GMT+0')

Incorrectly-displayed event, which takes place in EST:

BEGIN:VEVENT
DESCRIPTION:Fun with TZINFO Flyer Fridays give you the opportunity to hear
  from professors in Communication Sciences & Disorders\, Education\, Manag
 ement\, Nursing\, Physical Therapy\, Occupational Therapy or Visual & Perf
 orming Arts.  \n\nFaculty sessions begin at 9:15am (PLEASE CHOOSE ONE)\, f
 ollowed by a 10am campus tour and an 11am Freshmen information session.  A
 fter the day's events\, you're invited to join the Admissions staff for lu
 nch.
DTEND;VALUE=DATE:20111225T215525Z
DTSTART;VALUE=DATE:20111225T175525Z
LOCATION:Nazareth College
SUMMARY:Flyer Friday - Timezone Info Session
UID:ug-flyerfriday-172
END:VEVENT

And you can see it’s stored in Zope with UTC, so the problem is only in how it’s displayed:

>>> app.Plone.events['ug-flyerfriday-172'].startDate
DateTime('2011/12/25 17:55:25 GMT+0')
  • 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-05-22T23:17:15+00:00Added an answer on May 22, 2026 at 11:17 pm

    Try Time Zone Converter.

    You are experimenting daylight saving time.
    This arises when you change the date.

    Check one of the supposedly wrong dates:

    DTSTART;VALUE=DATE:20111225T175525Z should be 1:55pm, but it’s showing as 12:55pm
    and read the legend:

    Daylight Saving Time is not in effect
    on this date/time in GMT Daylight

    Saving Time is not in effect on this
    date/time in America/New_York

    And then check one of the no-problem dates:

    DTSTART;VALUE=DATE:20110812T130000Z should be 9am in the America/New_York timezone with this legend:

    Daylight Saving Time is not in effect
    on this date/time in GMT Daylight

    Saving Time is in effect on this
    date/time in America/New_York

    Here you can see the Dailyght Saving Time details for America/New_York timezone:
    http://www.timezoneconverter.com/cgi-bin/zoneinfo.tzc?s=default&tz=America/New_York

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

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a French site that I want to parse, but am running into
I am doing a simple coin flipping experiment for class that involves flipping a
I have a text area in my form which accepts all possible characters from
i got an object with contents of html markup in it, for example: string

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.