Currently it seems to get the basic opening hours (unsure which source) but if osm has opening hours data of a POI, I recommend using that AND using this library to interpret it correctly
https://github.com/opening-hours/opening_hours.js
You can do quite advanced things with opening hours in openstreetmap and the hard work of making a library to parse them is already done. It allows you to indicate when a place might be open but only on call or reservations or special public holiday times, etc....
https://wiki.openstreetmap.org/wiki/Key:opening_hours
There's a lot of complex ones and this site uses that js library to allow osm'ers to verify their strings
https://openingh.openstreetmap.de/evaluation_tool/
This is an example of a more complex one https://www.openstreetmap.org/node/4922022154
https://openingh.openstreetmap.de/evaluation_tool/?EXP=Tu-Th%2010:00-18:00;%20Fr,Su%2010:00-24:00;%20Sa%2010:00-17:30%20||%20Sa%2017:30-24:00%20%22reservation%22#check
So this one is open from 12:00 to 14:00 and from 18:00 to 21:30
But on saturdays it's only available via reservation (between 18:00-22:00)
and on sunday and public holiday it's closed
AND between july and august it's fully closed on saturdays