Closed camjac251 closed 3 years ago
Good idea, and you are right, the JS does override the formatting because of the timezone adjustments. I think this should be fixable though, i just need to find a way to utilize the same date format for both PHP and JS. I'll see what i can do.
I've added a commit to the dev branch. Hopefully it should work now. The date
option can now be set to either array('desktop_format', 'mobile_format')
or just a regular string
if they should both be the same format, i wouldn't recommend this though as the mobile screen space is very limited with these tables.
A date format option has been added. (#13)
Sorry for the late reply. I just updated today to the latest version and saw the new variable for adding in the date format. Although I believe the javascript is overriding any php formatting.
What happens is on the load of a page, it'll show the format that php defines but then is overridden by JS but not following the format.
I'm trying to use m/d/y h:i A
I've attached a gif below of what happens on reloading the page
That's weird. Can you double check that you've updated all of the files? This used to be the issue before the latest release but it should be resolved now.
I tried using the same format as you and i can't reproduce it when reloading the page.
Could it be possible to change the date formatting? I had modified it before but I think the javascript overrides the php file's date variables.
I was hoping to set something like this
D m/d/y h:i A
which would look something like thisSat 07/11/20 09:54 PM