question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Set minutes in datetime issue - Version 2.0.9

See original GitHub issue

Hi!

I opened datetime anypicker, with minutes round between 0 and 30.

1

If I not click in minutes and click “Guardar” directly, the minutes not show correctly. Input show 31 minutes and not show 0.

2

Code is: $("#ip-deInicio").AnyPicker({ mode: "datetime", showComponentLabel: true, dateTimeFormat: "HH:mm", intervals: { h: 1, m: 30 }, layout: "popup", roundOff: true, i18n: { headerTitle: "Seleccionar", setButton: "Guardar", cancelButton: "Salir", componentLabels: { hours: "Hora", minutes: "Minutos" } } });

Any tips? Thanks

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
abedputracommented, Mar 2, 2019

I have solved this problem please check anypicker.js please check this image

screen shot 2019-03-02 at 09 27 34

You can modify this point dInput.getMinutes()

Thanks

0reactions
icableocommented, Mar 3, 2019

Thanks friend!!

Good job!

Read more comments on GitHub >

github_iconTop Results From Across the Web

DateTime.AddMinutes(Double) Method (System)
Returns a new DateTime that adds the specified number of minutes to the value of this instance.
Read more >
Java Date cut off time information - Stack Overflow
Use the Calendar class's set() method to set the HOUR_OF_DAY, MINUTE, SECOND and MILLISECOND ...
Read more >
Manipulate Date Time Operations In Dataweave - Mulesy.com
Convert Current DateTime to specific string format(yyyy-MM-dd) ... Add Hours,Minute,Time In Current Time: we are adding 2 Hours,13 Minute and 9 Seconds, ...
Read more >
DateTime - A date and time object for Perl - metacpan.org
This is done by setting the locale when constructing a DateTime object. If this is not set, then "en-US" is used. Floating DateTimes....
Read more >
XPath Minutes-from-DateTime | Mendix Documentation
The minutes-from-dateTime() function extracts the minutes value from a Date and time attribute so it can be used to compare to a value....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found