close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

[Bug]Times fields treated as date fields

Thread began 7/25/2012 5:12 pm by Andrew Read | Last modified 7/26/2012 12:09 pm by Andrew Read | 452 views | 3 replies

Andrew Read

[Bug]Times fields treated as date fields

Here's another bug. When a field is set to text in WADA and is validated for Time (not date or date/time) it is displayed and treated as a date. In my particular database this is a time only field.

From Results page:

<?php echo(($row_WADASCRUBIT['SCRUBTIME'])?date('n/d/Y',strtotime($row_WADASCRUBIT['SCRUBTIME'])):''); ?>

This converts my times into dates.

More applicable would be:

<?php echo(($row_WADASCRUBIT['SCRUBTIME'])?date('g:i  A',strtotime($row_WADASCRUBIT['SCRUBTIME'])):''); ?>

Also issues on insert with these fields:

. $WA_AB_Split . "".((isset($_POST["TIMESCRUB"]) && $_POST["TIMESCRUB"]!="" )?date("Y-m-d H:i:s", strtotime($_POST["SCRUBTIME"])):"")  ."" . $WA_AB_Split .

The insert is trying to convert the value into a date/time which is not a valid value for that field.

Also, I believe the server side validation is attempting to validate a datetime style field as well, which doesn't work.

I have changed the following for the time fields to:

$_POST["TIMESCRUB"]!="" )?date("H:i:s", strtotime($_POST["SCRUBTIME"])):"")

This returns the correct value for the database (die() tested), however the validation fails so I don't think it likes what it is seeing.

Please advise on a quick fix for this one please. :)

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...