Last Updated on September 14, 2022.
I was working on a react native project which is time sensitive. Unfortunately, my Android Emulator on my M1 Macbook pro always shows the wrong time. Even changing the time didn’t help the case.
A quick google search helped me to find the solution.
One solution was to turn off and then turn on emulator using its power button. This solution doesn’t work for me.
Another solution was to execute the following command on your terminal.
adb shell su root date $(date +%m%d%H%M%Y.%S)
This worked for me. The time on my M1 mac and the Android emulator became the same.
I hope this solution will work for you. Thank you for reading.