GithubHelp home page GithubHelp logo

Comments (7)

ilahir avatar ilahir commented on August 19, 2024 1

Hi,
Fixed above issues in 24 hrs format

added parseInt, see below code

function o(i, e) {
r.time.hours =parseInt(i / 3600);
var t = i % 3600;
12 == e && (r.time.hours > 12 ? (r.time.hours -= 12, r.time.meridian = "PM") : r.time.meridian = "AM"), r.time.minutes = t / 60, r.time.hours = r.time.hours.toFixed(0), r.time.minutes = r.time.minutes.toFixed(0), 1 == r.time.hours.toString().length && (r.time.hours = "0" + r.time.hours), 1 == r.time.minutes.toString().length && (r.time.minutes = "0" + r.time.minutes), r.time.format = r.mainObj.format
}

from ionic-timepicker.

rajeshwarpatlolla avatar rajeshwarpatlolla commented on August 19, 2024

Can you show me the steps to reproduce this issue?

from ionic-timepicker.

ilahir avatar ilahir commented on August 19, 2024

Hi,
Please change the system time (For Ex : 10:50 PM)

http://rajeshwarpatlolla.github.io/TimePickerForIonicFramework/demo/#/tab/timepicker

see below image
System time is 10:46 PM
Open your demo time picker and see the time in 24 format (show 23:45 this wrong ---> correct time is 22:45)

img_20161006_224627

from ionic-timepicker.

jyotigupta007 avatar jyotigupta007 commented on August 19, 2024

Hi,

I am also facing the same issue. 24 hrs format not working properly in end hours like after 30 minutes it shows 1 hour more in time picker.

from ionic-timepicker.

ilahir avatar ilahir commented on August 19, 2024

from ionic-timepicker.

jyotigupta007 avatar jyotigupta007 commented on August 19, 2024

Hi Ilahir,

I have changed in min file as you have mentioned in your above comment. And it is working fine.

Thanks for your help.

from ionic-timepicker.

rajeshwarpatlolla avatar rajeshwarpatlolla commented on August 19, 2024

Can someone make a PR with the fix?

from ionic-timepicker.

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.