Well, so your problem is time not showing correctly? You are pulling the date_time from JS.
This means inside the user’s browser. Not sure if this is the best way to do it. A user can disable
JS from security reasons and then it would not be correctly displayed. You do not need any .js file
to run javascript. You also use date_time() function for the JS. There is no such function in JS.
I will guess you have that function created in the javascript.js file. Just one more complication…
Is there a reason you don’t just use PHP and display the time from the server? In PHP you can show the time using something like this: echo date(“Y-m-d H:i:s”); Well, this is U.S. format, but, easy to alter!
Then, you don’t need the javascript.js file, unless it contains other JS functions you have created.
As far as the pointers to files, the " …/ " in a src means back up one level of folders. Therefore, if you have your javascript.js file in one area and it does not change, you can use " / " to move to the root directory and then to wherever the .js file is. For example, I always put my JS code into a folder named lib and then inside another folder named js. So, to access it on my site it is always /lib/js to get to any of my JS code files. Most programmers keep libraries of some sort in a folder that is clearly marked. I like to have all of the support files in one folder and then group them inside that one. Any page in my site can get to /lib/js for JS files, /lib/incl for PHP includes, etc… But, it sounds like your issue is pointing to the correct folder for that one file.
Not sure if that helps, but, hope it does!