Good day! I have a problem with time in Time Dropper.
For example: I save ticket with current time and date. Well, I want to edit time and date and I have a problem with time. I click “Use 24” but I see 00pm or 12am, or 3pm, but I want to see 23, 21, 15. Okay, I unused 24 and I see 23, 21, 15, 16…
Oh It’s one wrong, but I have a problem number two and this more important thing!
If I change 12 hours I see 00 in my Database and I see 00 in my App. So, If I change 00 hours I see 00 in my Database (and my App, eh…).
I think this is bug and I think you need see in this code:
var vals = []
// if (!dt) {
// dt = new Date();
// }
var time = timeStr.match(/(\d+)(?::(\d\d))?\s*(p?)/i);
if (!time) {
return null;
}
var hours = parseInt(time[1], 10);
if (hours == 12 && !time[3]) {
hours = 0;
} else {
hours += (hours < 12 && time[3]) ? 12 : 0;
}
Please, help me.
Have a nice day!