M. Schulte
|
| Posted: 11/05/2002, 11:25 AM |
|
Hy,
i have migrated a CS Project (php) from one Domain to onother Domain with new MySQL Database.
i have updated the Database Entrys in the Porject Settings - all works fine, but one thing dosent work:
in a validation i use following code:
$startDate = date("Y-m-d",$toscana->von->GetValue());
i use this variable later for email.
field von is in format date in mysql: yyyy-mm-dd
im my old project it gives the right date, but now it gives every time 1970-01-01.
In the database there is the right date , in all forms there is the right date too.
what is there wrong ?
thanks for yout comments
Mikle
|
|
|
 |
yodabear
|
| Posted: 11/06/2002, 4:09 PM |
|
Per l'italiano:
setlocale ("LC_TIME", "it");
print (strftime ("Oggi e %A "));
|
|
|
 |
Nicole
|
| Posted: 11/09/2002, 2:52 AM |
|
Mikle,
PHP date() function requires the second parameter to b timestamp. As you’re getting the default date value instead expected one it means that the value of von field in the event is not in timestamp format. Please check it by simple printing its value.
To convert value field value to timestamp use the following DBFormat property value:
yyyymmddHHnnss
|
|
|
 |
|