Code Monkey home page Code Monkey logo

Comments (3)

annavester avatar annavester commented on September 23, 2024

@offsky please see if this is how you need it to be.

from ade.

offsky avatar offsky commented on September 23, 2024

Half way there. The issue description isn't clear on this (sorry), but we need the timezone for date, date+time and year. I went ahead and made this simple modification already.

Now, once [time,timezone] is returned via datapicker, we need to store the entire thing into the model. So, the model will be an array instead of an integer now. The filter will need to be modified to handle this during display time and the directive will need to handle this during edit time as well.

The idea is that if I am in San Diego and I set the value to "Jun 5, 1:00pm" and then I fly to New York, the value should display "June 5, 1:00pm PST". Currently it will adjust for the local time and display "June 5, 4:00pm" which can be confusing to people. Since we will now be recording the timezone that the time was set in, we can have our filter take this into account and display the timezone (PST) at the end of the date/time if it is from a different timezone. I would probably be a good idea for this to be an option that we pass into the filter so we can either display local time or the setters time depending on a flag.

In the future, we could also provide a way to hover your mouse over the date and see the local time and setters time in a popup.

from ade.

offsky avatar offsky commented on September 23, 2024

4e56d53

from ade.

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.