Giter VIP home page Giter VIP logo

rich-date-input's People

Contributors

bjoerge avatar kristofferjs avatar mariuslundgard avatar rexxars avatar saasen avatar skogsmaskin avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rich-date-input's Issues

when using the datetime picker, the current time is used for the seconds field, rather than zero

For example, I've created a field with this config:

{
  title: 'Start Showing At',
  name: 'displayStartTime',
  type: 'datetime',
  options: {
    timeFormat: 'HH:mm:ss'
  }
}

To start, it looks like this:

1616028423

When I open up the picker it looks like this:

1616028436

Clicking on the "19:00:00" option causes this to happen:

1616028445

I would expect the time to read "2021-03-17 19:00:00", but it has taken the seconds component of the current time and used that as the seconds field, rather than setting it to zero.

This is worse when the timeFormat is not set to display seconds. In that case it silently stores "2021-03-17 19:00:23", while the component displays "2021-03-17 19:00"

Update the link to the repository in NPM

Hi,

This isn't really a code issue but I've been looking for the source code of this input in the sanity repository, the one that is linked in npm without success. Is it possible to update npm infos to prevent misleading search?

Thanks!

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.