Comments (7)
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.
Can you show me the steps to reproduce this issue?
from ionic-timepicker.
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)
from ionic-timepicker.
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.
from ionic-timepicker.
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.
Can someone make a PR with the fix?
from ionic-timepicker.
Related Issues (20)
- Can't build project - Resulting minified file is "broken" HOT 3
- How to disable past time and meridians too HOT 1
- File references in index.html HOT 1
- Random minute display HOT 1
- Customize Popup
- v0.6.0 is not on NPM yet HOT 1
- Minute arrows not visible. HOT 1
- Max time HOT 1
- Issue with local time HOT 1
- How to disable previous dates?
- How to get AM PM with time?
- Display 00:00 AM in place of 12:00 AM HOT 1
- Limit first and last hour HOT 1
- How can I display just 00:10 ??? any setup showing 12:10... I need Select just 10 seconds. HOT 1
- Issue - Need to press Set button twice for the modal to close
- Time picker is allowing alphabets and character as input.
- Callback on close
- how to use in ionic 2 HOT 1
- Not syncing with ionic2-calendar
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ionic-timepicker.