Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save tzhao11/e886b3b872c7b4e4e60e80ff26de7270 to your computer and use it in GitHub Desktop.

Select an option

Save tzhao11/e886b3b872c7b4e4e60e80ff26de7270 to your computer and use it in GitHub Desktop.
Adjust oculus quest 2 system date and time without doing factory reset.

Adjust Oculus (Meta) Quest 2 System Date/Time without Doing Factory Reset

TL;DR

adb shell service call alarm 2 i64 {current unix epoch * 1000}

Background

My quest 2's system date was suddenly off by a large amount today. Now the device can't make HTTPS connections, because TLS verification fails. Everything is HTTPS now, so I'm left with a device without Internet. I went through the built in settings app, looking for that date and time setting every device manufactured on Earth comes with. Found nothing. So I googled. After extensive googling, I can't believe the only way to do such a trivial thing is to factory reset the device. This is so ridiculous, and apparently Meta just doesn't care. So I did some research, and here are my findings:

Steps

  1. Install SideQuest, follow its instructions to connect your device.

  2. Go to https://www.epochconverter.com, copy the number after The current Unix epoch time is.

  3. Multiply the number by 1000.

  4. From SideQuest, go to Run ADB commands > CUSTOM COMMAND, click on Command To Run..., enter the following (without brackets):

    adb shell service call alarm 2 i64 <Number from step 3>

    e.g.

    adb shell service call alarm 2 i64 1642846249000
  5. Click RUN COMMAND.

  6. Done. You shoud see something like

    Result: Parcel(00000000 00000001   '........')
    

Tested on quest 2, persists after reboot.

Thoughts

Meta should stop shipping devices that neither do NTP nor allow user to manually adjust date and time. In 2022.

References

http://v-kompany.blogspot.com/2014/07/how-to-call-system-service-in-adb.html https://sclarkso.com/tech/2021/10/05/quest-2-timezone-change-without-factory-reset.html https://gist.github.com/tniessen/ea3d68e7d572ed7c607b81d715798800

@UlyssesWu

Copy link
Copy Markdown

Thank you for saved my day 💖

@Imransinpro

Copy link
Copy Markdown

Thank you MAN). You saved me. Success

@Inno-Man

Copy link
Copy Markdown

Thank you so much!!! I can not believe but it works!!

@xyuer

xyuer commented Jan 9, 2024

Copy link
Copy Markdown

Thank you

@catcolia

catcolia commented Aug 29, 2024

Copy link
Copy Markdown

Thank you sir. It still works on Quest 2. You saved my day.

@duolanda

Copy link
Copy Markdown

You are truly a super hero! You saved my Quest 2!

@MrSandSS

MrSandSS commented Feb 1, 2025

Copy link
Copy Markdown

Thank you!

@katsu11235

Copy link
Copy Markdown

Thank you very much! love u~

@shuaibird

Copy link
Copy Markdown

It works for MQ3 as well. Thank you. I agree that appears to be a flaw in the product design.

@GoldSrc3

GoldSrc3 commented Jun 5, 2025

Copy link
Copy Markdown

Thanks man, this was extremely useful.

@yiru0922

Copy link
Copy Markdown

Thanks!

@silentobservers

Copy link
Copy Markdown

Thank you!

@persionlife

Copy link
Copy Markdown

Absolute wizardry, kudos <3

@CodeSenpai4ever

Copy link
Copy Markdown

Thanks I am surprised how something this simple cant just be a setting but needs to locked down. <3

@kontrama

kontrama commented Mar 9, 2026

Copy link
Copy Markdown

dude thatks, this still works. Revived my quest after 3 months of discharge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment