I will support you on this one. Melatonin is best thing there is to get you back to some normal sleeping pattern as fast as possible. This does not mean you should ignore all other healthy lifestyle choices to support your health and sleep.
I use Melatonin also, when I get out of my sleeping routine I use Melatonin for a week max and then I'm back in my pattern and don't need it anymore. One box of Melatonin is like 10$ and can last you more then a half year for sure.
Melatonin can be used for people who want to normal sleeping, but better consulting with the doctor, so you don't have any problem in the future. But if it is necessary, it is still better not to consume anything because we have an alarm that will sound when our body feels tired, and if that happens, we can rest for a while. So you don't have to spend money to buy any pills to help you sleep well.
Some people's alarm is off, that is why people need help sometimes to schedule their sleep so they can function in society. Society works by following norms and norm is that people sleep at night. Some people don't sleep at night naturally, their alarm tells them it is time to sleep in the morning for example, because of that those people need help with sleeping the way society dictates so they can hold a day job for example.
So this kind of nonsensical folk wisdom does not work all the time and if you red the posts in this topic you would understand that without me having to explain this.