Keep going in the same direction. For example leave HKG at midnight Arrive FRA 6am
We went to HKG for an Asia trip after my son’s Bar Mitzvah and the shul In Kowloon didn’t seem to always be able to get a minyan in the evenings (the RAV took my DHs number and called a couple of times so to remind him that they needed the two of them to make the minyan) and also timing wise, we arrived at 6am and went straight there after dropping bags and they just missed Shacharit.
Another benefit of Panama I hadn’t thought of until reading all theses travel posts is that it’s on Eastern time.