Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8170813
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T21:15:21+00:00 2026-06-06T21:15:21+00:00

I created an application and all the db tables have ‘created,modified’ fields that filled

  • 0

I created an application and all the db tables have ‘created,modified’ fields that filled automatically by Cakephp’s Default Functionality.
And I put the Field Type is

created datetime NULL,
modified datetime NULL,

like.
But it doesn’t work. The data where shows 0000-00-00 00:00:00 Format.

The cakephp version is 1.2 , so i put the datetime NULL option ,also I removed the temp,cache files in Model.

I need to save the correct date & time format for those 2 fields.

If there is any problem with XAMPP version (I use the latest version of XAMPP,1.7.7 PHP: 5.3.8 & mysql v 5.5.16 )

I hope that all are identifies my Issue.
Please help me with correct solution.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T21:15:24+00:00Added an answer on June 6, 2026 at 9:15 pm

    I had a similar issue but in CakePHP 2.1.3 with the created and modified columns inserting a bunch of zeros instead of the current datetime.

    My problem was the existing cache of the relevant model. I had to delete the existing model cache to make this automatic datetime stuff work. The cache be found in: app/tmp/cache/models/.

    I think I had this problem in the first place because I altered the structure of the table after its initial creation, adding the created field.

    After deleting the model cache once, it was was working fine.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

All the tables in the database created by a rails application seem to have
I have created an application in facebook,all is working fine except the publish to
I have created an application using Adobe Flex. I took all the files from
I have created a module in access 2007 that will update linked tables, but
I am working on a desktop application that populate the list of all tables
I am working on a desktop application that returns list of tables that have
I have a database labor which contains the tables that the rails application has
I have created application in mvc3 and I used the default account controller for
I created a small application that, when run, creates or updates some tables in
I am trying to create an application bootstrap that will drop all the tables

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.