Re: creationdate column in database is filled null

2009-04-22 Thread gaurav.v.sharma
Thanks a lot. It solved my problem. :-) On Apr 15, 10:56 pm, Brendon Kozlowski wrote: > In your /app/config/bootstrap.php file, before the ending ?> (if the > file contains one), use the following PHP code: > > date_default_timezone_set('America/New_York'); > > You can find your OWN area's time

Re: creationdate column in database is filled null

2009-04-15 Thread Brendon Kozlowski
In your /app/config/bootstrap.php file, before the ending ?> (if the file contains one), use the following PHP code: date_default_timezone_set('America/New_York'); You can find your OWN area's timezone by checking the examples from http://php.net/timezones - just switch the string in the functio

Re: creationdate column in database is filled null

2009-04-13 Thread brian
Perhaps your server is running in a different timezone than you are. On Mon, Apr 13, 2009 at 2:45 AM, gaurav.v.sharma wrote: > > Thanks a lot, it worked perfectly fine :-) But the "time part" in > the created field is not having the correct value for current time ... > what should be done i

Re: creationdate column in database is filled null

2009-04-12 Thread gaurav.v.sharma
Thanks a lot, it worked perfectly fine :-) But the "time part" in the created field is not having the correct value for current time ... what should be done in that case... On Apr 12, 9:23 pm, brian wrote: > Change the field name to "created" and add another named, "modified". > Both of th

Re: creationdate column in database is filled null

2009-04-12 Thread brian
Change the field name to "created" and add another named, "modified". Both of them should be defined like so: DATETIME DEFAULT NULL Cake will then set the value when/where appropriate. On Sun, Apr 12, 2009 at 2:05 AM, gaurav.v.sharma wrote: > > Hi all :-), > > I have created a small applicatio

creationdate column in database is filled null

2009-04-12 Thread gaurav.v.sharma
Hi all :-), I have created a small application using the bake command. While designing the database for the application I created a column named "creationdate" in every table so as to record the date and time of that operation. I donot allow user to enter this "creationdate" value infact I have