Would it be possible to have the option to output the ‘openingHours’ cells time format in military time format instead, like this for example:
[“Mo 09:00-17:00,18:00-23:59”,“Tu 00:00-08:00,09:00-17:00”],[“UTC”:“-5:00”]
Thanks!
Would it be possible to have the option to output the ‘openingHours’ cells time format in military time format instead, like this for example:
[“Mo 09:00-17:00,18:00-23:59”,“Tu 00:00-08:00,09:00-17:00”],[“UTC”:“-5:00”]
Thanks!
Ill need to see, the data is pulled as text and might need some parsing in order to convert it.
How are you using the data? Maybe the program has some form of date parsing and formatting?
I’m using it with the wp plugin Geodirectory, if I want to import in bulk business hours on csv file it only accept this time format.
Thanks
Ok undertstood,
Had a close look at this and its much more complex than it seems.
Google maps reports more than just dates (also includes warnings for holidays) eg
Google sometimes doesn’t report a closing time date ie 24 hrs
Times are actually reported in 24hr time depending on region
I only tested this region, but its possible in another region date and times are reported differently again.
This makes parsing the info difficult as its not reported in any standard manner.
I see, thanks for looking into it.
In the end I managed to format the time with Chatgpt, it takes a bit more time but it does the job.