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

alarm goes off at wrong time (24 hr system error) #33

Closed
3 tasks done
itsmmt305 opened this issue Apr 12, 2023 · 18 comments
Closed
3 tasks done

alarm goes off at wrong time (24 hr system error) #33

itsmmt305 opened this issue Apr 12, 2023 · 18 comments
Labels
bug Something isn't working help wanted Extra attention is needed priority: high Very important

Comments

@itsmmt305
Copy link

Steps to reproduce

set an alarm for any time

Expected behavior

it should ring at the set time.. according to 24 hr system

Actual behavior

any alarm before 12:00 (pm) rang at T±12 hr (e.g 06:00 tomorrow morning alarm rang at 18:00 this evening)
any alarm after 12:00 pm doesnt ring
explains why my 14:20 alarm didnt go off

Screenshot_2023-04-12-18-00-56-842_com miui home

Screenshot_2023-04-12-18-01-12-658_com bnyro clock

Clock You version

v2.1

Android version

Android 12 / MIUI 13

Other details

No response

Acknowledgements

  • I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open issue.
  • I have written a short but informative title.
  • I will fill out all of the requested information in this form.
@itsmmt305 itsmmt305 added the bug Something isn't working label Apr 12, 2023
@Bnyro Bnyro added the help wanted Extra attention is needed label Apr 17, 2023
@mxwmnn
Copy link

mxwmnn commented Apr 19, 2023

Can confirm!

Even aware of it if I set the alarm to the time it doesn't ring and skips it to the next day. So the alarm isn't working.

@Bnyro Bnyro mentioned this issue May 15, 2023
3 tasks
@ghost
Copy link

ghost commented Jun 15, 2023

I am not having alarms ring at all :(
Edit for clarity: I am having alarms play, however, regardless of having a 12 or 24 hour clock, my alarms are always delayed by 12 hours.

@ghost
Copy link

ghost commented Jun 21, 2023

I am now having alarms play with a 12 hour delay after a reboot. What's more, alarms seem to go off at the right time if i turn on the alarm between 0-12 (only tested between 0-1). Not sure if this helps though

@eclairevoyant
Copy link

@junkminerman This was already mentioned in the reported issue, no need to duplicate info in comments.

@ghost
Copy link

ghost commented Jun 21, 2023

@eclairevoyant I'm not sure it was. I'm trying to say that if I turn my alarm on between 0-12 an alarm set to 8:00 will actually go off at 8:00 rather than 20:00, but I might just be misreading the original issue

@any1th3r3
Copy link

any1th3r3 commented Jul 14, 2023

FWIW, I have noticed that alarms do go off at the correct set time if I have another clock app installed alongside Clock You and alarms setup in said app and Clock You, regardless of whenever I turn them on, eg:

  • Phone set to 24hr
  • Clock You alarm set at 06:00
  • Other clock app alarm set at 06:10 (eg Simple Clock)

Both alarms will go off at the correct time.
However, if I only have Clock You installed, the alarm will go off at 18:00 (and will show up as such in my phone's quick settings pull-down notification).

@itsmmt305
Copy link
Author

so you mean to say clock you is in the sucker fish mode right now.

@BioRider17
Copy link

After some experimenting, I think the issue revolves around the AM/PM toggle. Is it possible those 2 are swapped?

@serrq
Copy link

serrq commented Jul 20, 2023

Copy the ring's behavior of this snooze app. It rings at the proper time even underground. A caterpillar! Never fail a shot!

https://github.com/WrichikBasu/ShakeAlarmClock

@ViktorKahu
Copy link

Any update on this?

How high of a priority is this?

IMHO, alarms are 99% of the reason to have an otherwise largely unneeded clock app, and if they don't work properly...

@Bnyro
Copy link
Member

Bnyro commented Aug 5, 2023

It's a high priority, but I don't have a clue what's causing it.

@itsmmt305
Copy link
Author

It's a high priority, but I don't have a clue what's causing it.

dont stress about it.. i'm sure you'll find a way around it. ✨🫂

@Titaniumtown
Copy link

Can reproduce, almost messed up my morning schedule.

@M00NJ M00NJ added the priority: high Very important label Aug 18, 2023
@Neon-44
Copy link

Neon-44 commented Aug 29, 2023

FWIW, I have noticed that alarms do go off at the correct set time if I have another clock app installed alongside Clock You and alarms setup in said app and Clock You, regardless of whenever I turn them on, eg:

  • Phone set to 24hr
  • Clock You alarm set at 06:00
  • Other clock app alarm set at 06:10 (eg Simple Clock)

Both alarms will go off at the correct time.
However, if I only have Clock You installed, the alarm will go off at 18:00 (and will show up as such in my phone's quick settings pull-down notification).

Cannot reproduce. Alarms are always offset by 12 hrs, regardless of what i do in simple-clock.

@Neon-44
Copy link

Neon-44 commented Sep 7, 2023

after some quick research myself i think i may have found the Problem.

The problem seems to be that you're using Calendar.HOUR when you should be using Calendar.HOUR_OF_DAY for scheduling an Alarm.

https://stackoverflow.com/questions/42745481/alarm-is-setting-12-hours-later-in-my-alarm-android-app-whenever-the-time-is-12

@Bnyro
Copy link
Member

Bnyro commented Sep 8, 2023

That seems to be it, thank you so much @Neon-44 <3

@Bnyro Bnyro closed this as completed in ab529a8 Sep 8, 2023
@Neon-44
Copy link

Neon-44 commented Sep 8, 2023

always glad to help.
can't wait to replace my default clock app with this on my new AOSP Phone, now that it works :):)

@PranavPurwar
Copy link

Now, after updating to CI build, the alarm goes off correctly, but there's no sound, only the notification, making it essentially useless for most cases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed priority: high Very important
Projects
None yet
Development

No branches or pull requests