Giter VIP home page Giter VIP logo

Comments (5)

bwoester avatar bwoester commented on July 21, 2024

The most important point is not about sending date/time info in any fixed timezone like UTC. It's important to make sure the timezone info is actually included and that it is handled correctly on the server side. This means either

  • store the date/time info together with tz info or
  • convert all incoming datetime values into a unified timezone like UTC and then store it without tz info

That being said, sending date time info in a certain timezone like UTC might still be a good idea, but only as a convention. The timezone info should still be included, the server should still inspect and validate it, but having all datetime infos in one timezone will certainly help debugging.

What's your plan about datetime info received from the server?

I think the same rules should apply:

  • return datetime info together with timezone info (might always be UTC, but client shouldn't rely on it)
  • client handles timezone info and converts the datetime info into the device's current timezone before displaying anything

from apps.

visit1985 avatar visit1985 commented on July 21, 2024

convert all incoming datetime values into a unified timezone like UTC

Why not using Unix-Timestamp as the unified format and using the conversion methods from http://www.epochconverter.com/ ?

This will also prevent compatibility issues on all databases since you can store it as integer.

from apps.

bwoester avatar bwoester commented on July 21, 2024

Timestamps are one way to go.
Only thing I don't like about them: I always need a converter when debugging them... ;o)

from apps.

nderambure avatar nderambure commented on July 21, 2024

šŸ‘ for @bwoester proposition since I'm experiencing problems with summer/winter time here in France as referenced in previous comment.

from apps.

jancborchardt avatar jancborchardt commented on July 21, 2024

Iā€™m closing this issue because it has been inactive for a few months. This probably means that the issue is not reproducible or it has been fixed in a newer version.

Please reopen if you still encounter this issue with the latest stable version or the current betas for ownCloud 6 and then please use the issue template. Also note that the calendar issue tracker moved to http://github.com/owncloud/calendar/issues. You can also contribute directly by providing a patch ā€“ see the developer manual. :)

Thank you!

from apps.

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.