Server is showing wrong

Website URL

(basic-banking.free.nf)

Error Message

(when in intert data into database wrong time is showing here and when i installed ssl certificate after that js code is not working in image slider at home page)

Other Information

(other information and details relevant to your question)

i mean server time wrong


I made a transaction and looked under transaction history

it’s up to you to adjust and declare to your time zone or whatever you want

please note that the system time on the database server is set to EST, which may be different from the time zone as set on your website. You can work around this by setting the time zone on the MySQL session or by generating the timestamp from PHP before sending it to the database.

7 Likes

Js problem
I wrote the js code only time it also works fine in local server but in your server it generates 3 time as seen.

**How to Set Time Zone According to India **
Pls help me to set time zon according to india I tried to set it but it is not working and same problem i am facing

We’ve already told you.

It’s not something that is related to the js, so no matter how hard you work on you javascript, it isn’t gonna help.

As why it works on local, that’s because your computer, which is acting like the “server”, uses the India timezone.
But then we’ve also told you that our servers don’t use India timezone by default.

4 Likes

To get correct time zone support, I suggest the following:

  • Make sure that all timestamps are generated from PHP, not from MySQL. MySQL uses the system timezone, and the system time zone cannot be changed for individual databases or accounts.
  • Use the PHP Options in the client area to configure the time zone for PHP on your website. This will make sure that any dates and times generated from PHP will use your configured time zone (unless you override it in your own code, of course).

And if you “tried to set it but it is not working”, then please a bit more specific. We don’t know what you tried to set and we don’t know what you are doing that’s not working.

3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.