Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

12:00 AM shown as 00:00 AM #80

Closed
shyamal890 opened this issue May 7, 2016 · 7 comments
Closed

12:00 AM shown as 00:00 AM #80

shyamal890 opened this issue May 7, 2016 · 7 comments

Comments

@shyamal890
Copy link

No description provided.

@jgerstle
Copy link

Yes I have the same issue. When setting the input time to 0 it shows up as 00:00 AM and if I set it to 86400, 24_60_60, it shows up as 12:00 PM. Is there a different way to set it to midnight?

@joelkaufman
Copy link

#90

rajeshwarpatlolla added a commit that referenced this issue Jul 8, 2016
@rhernandez-itemsoft
Copy link

paste this in line 117 (ionic-timepicker.provider.js)

if (config.format==12 && $scope.time.hours =='00'){
$scope.time.hours=12;
}

@rhernandez-itemsoft
Copy link

<script src="lib/ionic-datepicker/ionic-datepicker.bundle.min.js"></script>
<script src="lib/ionic-timepicker/ionic-timepicker.provider.js"></script>
<script src="lib/ionic-timepicker/ionic-timepicker.module.js"></script>
<link href="lib/ionic-timepicker/ionic-timepicker.styles.css" rel="stylesheet" />

@shyamal890
Copy link
Author

@rajeshwarpatlolla Can you merge this solution please. Thanks

@rajeshwarpatlolla
Copy link
Owner

Fixed in v0.6.0

@maa105
Copy link

maa105 commented Oct 1, 2016

this is not right. it should be 00. now if I put inputTime to 0 I get 12 for the hours. then if I do nothing and press set the time it changes my time to 12pm :O
and also because of that u cant use it for duration any more cause 0 duration translates to 12 hours!
please retract this update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants