This topic is locked

Time not shown in edit mode

11/10/2005 5:03:05 AM
PHPRunner General questions
O
otman author

I have phprunner running on msSQL db

I have two problems with datetime field

first: the format is wrong phprunner generates in locale.php

$locale_info["LOCALE_SSHORTDATE"]="M/d/yyyy";

but it needs to be $locale_info["LOCALE_SSHORTDATE"]="d-M-yyyy";

so I have to change that code everytime I generate new code
the main problem is the time

if I chose time to show in view it shows date AND time like 15-11-2004 12:00:00 AM

but in edit/copy mode it only shows the date 15-11-2004 and if I add time manually to the textfield it only stores the date not the the time

in ms-sql db it is defiend as datetime field with date AND time

in php runner I chose for time and for edit I chose textfield
any idea how to get the time also shown on edit/copy page and that I can update the time and date?
thanks in advance,

admin 11/10/2005

Answered to your personal email.

A
Alphomse 11/21/2005

sorry, Sergey Kornilov, i have this question too...
i want to indut Date + time, but phprunner dont work on this, can you tell me how to do too ?

admin 11/21/2005

Hi,
we'll fix this issue in the next PHPRunner version.
To get you pages working now please apply the following modifications to your

C:\Program Files\PHPRunner\source\include\functions.php file.

Locate the following line inside it:

$tvalue=localdate2db($value);



and replace it with:

$tvalue=localdatetime2db($value);


Then rebuild your project.