Manas Tungare

Timezone issues in Google Calendar widget fixed. Or so I think. Maybe.

Lots of you reported timezone errors in my Google Calendar Dashboard Widget. I thought I’d fixed it in 2.0 with some changes to the date parsing code, but it turned out that only worked for certain timezones. So here is another version with solely a timezone bug fix. I believe this should be the end of all troubles, but who knows.

Go forth, download v2.1, and let me know how it goes! If you still encounter any issues, please let me know.

If you’re a programmer, you might appreciate knowing what was wrong: the JavaScript parseInt function expects a radix as its second argument. (Radix is the base to which numbers should be parsed, e.g. decimal, octal or hex.) If you don’t provide a radix, the function guesses a radix based on the string you pass to it. If the number starts with 1-9, then the radix is assumed to be 10; if it’s 01-09, then it’s octal, and 001-009 are parsed as hex. So the timezone parsing was being affected by this for all the 01-09 hours of difference. Long story short, I added the radix explicitly, and things should be OK now.


  1. Had the same problem with my DigiWatch gadget too :)

    Teodor Filimon — March 1, 2007

  2. Looks like v2.1 fixed the timezone issue for me. Thanks! :)

    rob — March 4, 2007

  3. Great! 1 positive reply so far …

    Manas — March 4, 2007

  4. Great widget, has been looking for something like this. Only wish it would support hosted domains better, eg. take me to my hosted login site when I push the events.

    Sune — March 13, 2007

  5. Hi,
    my widget is great. It is displaying entries correctly now, apart from my regular multi-day events which only show up as a single item, labelled as the first day with no indication that they occur over 3 days. Is that something can change to have a daily entry for each day of the event ?

    Alison Adams — March 15, 2007

  6. I love your googlecalendar widget! I used it on my previous computer, but can’t seem to get it to work on my Powerbook. After I copy/paste my calendar address, the button at the bottom to submit the address does not appear. What should I do?

    Cathy — March 30, 2007

  7. I really enjoy the widget. I just have a couple of requests to give a little more context to the day. I appreciate that today’s events are bolder than the events for upcoming days – would it be straightforward to implement a slightly more distinguishing factor? Like a bolded line between today’s last event and tomorrow’s first?

    Also it would be great if you could have events that have passed also lose their bolding. I like to keep them visible as a reference point (for example if I’m late to a seminar/meeting I want to see it there), but would like to easily see what the next upcoming event I have listed is.

    Otherwise great work – I rely on this thing every day!

    Mike — April 26, 2007

  8. I can’t seem to find a way to resize the box. I’ve got enough stuff on the calendar that I have to scroll to see what’s going on. It would be very convenient if I could just lengthen it. Unfortunately clicking on the corner doesn’t seem to work.

    Alex J. Avriette — May 1, 2007

  9. 24hr time format support would be greatly appreciated!

    debarro — May 18, 2007

  10. Any chance of an update for Safari 3.0 beta?

    At the moment, the preferences page works, but the main display is blank…


    Stuart Shelton — June 15, 2007

  11. I’m running AppleWebKit/522.10.1 (KHTML, like Gecko) Version/3.0 Safari/522.11, and it works fine for me. Can you please send me a screenshot? The original script was written to be standards-compliant, so it should (theoretically) work with any version of Safari or WebKit.

    Manas — June 16, 2007

  12. Firstly may I hank u for this widget,

    however i am having problems setting up.

    Does not show events on main page, although I am able to go directly to my google calender

    do i need to set anything else up.


    Steve Wilson — June 25, 2007

  13. Thanks for the widget, it is really great! I’m still having problems with the timezone though. I’m in the UK, at all the times are displayed three hours too late (at 1200 appointment shows as being at 3pm). I’ve had a quick google and found this which may explain it?

    Keep up the good work


    Andrew Braithwaite — July 6, 2007

  14. Hi there,

    I really like this widget. I have just two user interface requests:

    1) Let me choose which colors represent different calendars. I’m used to having green be me and red be my husband; the widget has them the other way around and I can’t change it.

    2) Let me resize the widget. I have a very crowded dashboard and it takes up a lot of real estate.


    Rose Fox — July 26, 2007

  15. Actually, a couple more requests, now that I look more closely:

    3) Please allow an option to show the date as well as or instead of the weekday. I’m lousy at keeping track of what day it is. Dates are much easier.

    4) Please allow the user to choose 24H time display.

    5) Please allow the user to choose the display font and font size.

    Rose Fox — July 26, 2007

Leave a comment


Popular Posts