Giter Club home page Giter Club logo

card_to_calendar's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

tashas

card_to_calendar's Issues

Doesn't pull date correctly

I consistently get January 1, 2015 (which is incorrect).

Great plugin, though!! Saves me a lot of time - thanks for the effort.

Click on the link does not add to calendar

I updated the extension, which required some more permissions (which I granted).
Now, the "card to calendar" button is permanently visible and active, even on pages that do not contain any flight information, and even when all tabs containing flight information are closed.
On Gmail, in the flight information card, the "add to calendar" link displays only after I click the "card to calendar" button. I don't know whether this is a technical limitation, but it would be more convenient if the link displayed directly, without any additional action, in my opinion.

The problem occurs when I click on the "add to calendar" link: this action opens a new calendar tab, but no event is added to the calendar (although the flight information seems to be included in the URL).
I tried with 3 different flights of 2 different airlines, which gave me the same result.
I can provide the URLs, if necessary.
My version of Chrome is up to date (36.0.1985.143 m).
I am logged in on several gmail accounts at once, and I tried the extension on data which is in the first account (id=0 in the gmail URL).

Directly add to calendar

When I use this extension, I save the new event with no modification to the default data.
It would save a click to directly add the event to the calendar, and display the calendar (maybe with the GCal confirmation message) on that day, with no need of a validation.

Dates and Timezones not correct (no easy fix)

There are two issues regarding the handling of times and dates:

  1. If the flight arrives the next day in the morning (e.g. leaves 9PM, arrives 6AM next day) then the date for the arrival is wrong: It will put both departure and arrival as the same date, which is obviously impossible.
  2. If the times are in the local timezones of the respective airports then the times will be wrong. Example: Leave time is 8PM timezone Paris, arrival time is 10PM timezone New York, the flight takes 12 hours. Then it will put the flight as only 2h long, as it doesn't know about the timezone.

From looking at the Gmail card HTML, there seems to be no easy way to fix this: The date/timezone is not specified in the HTML card at all. So basically this is just an FYI so you are aware of these shortcomings/pitfalls with the Gmail cards. Also this means that implementing issue #3 is probably not a good idea at least for flights.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.