Constant change of dates in Codeigniter

Asked

Viewed 76 times

0

I have a site developed in PHP and Codeigniter, never worked with PHP or Codeigniter, only with Javascript.

The problem is that the date of the site ads is constantly updating, which was to be fixed, it changes practically every 15 days.

The date of customer registration is also completely wrong, along with the date of last access, should inform the date that the user logged in last, and all are with the dates (31/12/1969 21:00:00 )

I thought it was something related to the database Timezone, but it’s all right, someone knows how to check and find this error?

  • 1

    Be more specific in your question. " The customer registration date is also completely wrong" - Give an example of a date that got wrong and the code that generated that date

  • check the documentation, should be something in the helper https://www.codeigniter.com/user_guide/helpers/date_helper.html

  • Probably the script is generating a date pattern that the database does not recognize, and to avoid interruption, it records the default format. And I bet the bank is Mysql/Mariadb. You have to show the code. Just hearing it makes it hard...

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.