Giter VIP home page Giter VIP logo

Comments (5)

veromary avatar veromary commented on September 27, 2024

I can see the date and time is being faithfully reproduced from the ics file:
https://wiggio.com/cal.php?code=506648565712062504

The ics doesn't seem to include any timezone info and gives dates and times in UTC. I don't understand how iCalendar got it right.

I edited syntax.php adding in a line (giving some surrounding code for context)

                    if ($local) {
                        $dto = new DateTime($full);
                    }
                }
                $dto = new DateTime($full, new DateTimeZone('UTC')); // added this line
                $dt['timestamp'] = $dto->getTimestamp();
            } catch (Exception $eDate) {
                // invalid date or time
                $dt['timestamp'] = '';
                $dt['datestring'] = '';
                $dt['timestring'] = '';
                continue;
            }

I think I've bypassed the proper timezone code but it works for now.

from dokuwiki-plugin-icalevents.

real-or-random avatar real-or-random commented on September 27, 2024

It was indeed a bug. The iCalendar file indicates UTC properly. (It just does not contain a time zone identifier but UTC is indicated by the trailing Z after the date time.)

Can you test the latest revision?

from dokuwiki-plugin-icalevents.

glensc avatar glensc commented on September 27, 2024

i think Z with no value exactly indicates UTC. ISO-8601 standard indicates that.

from dokuwiki-plugin-icalevents.

real-or-random avatar real-or-random commented on September 27, 2024

Yes yes. It's just awkward that iCalcreator doesn't translate it. Also, I thought I had testes UTC events. Anyways, should be fixed now.

Am 24. September 2016 18:18:48 MESZ, schrieb "Elan Ruusamäe" [email protected]:

i think Z with no value exactly indicates UTC.
ISO-8601 standard indicates
that.

You are receiving this because you modified the open/close state.
Reply to this email directly or view it on GitHub:
#8 (comment)

from dokuwiki-plugin-icalevents.

veromary avatar veromary commented on September 27, 2024

All good here. Thanks!

from dokuwiki-plugin-icalevents.

Related Issues (20)

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.