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

rating

Order date is not stored in 24 hour format in the database

Thread began 7/12/2011 6:32 pm by georgevargasa302189 | Last modified 7/13/2011 8:17 pm by Jason Byrnes | 965 views | 5 replies |

georgevargasa302189

Order date is not stored in 24 hour format in the database

For some reason the Order Date timestamp to the database is being stored in 12 hour format.

Is this done on the confirm page?

The time wraps back to 1 after 12:59 which makes it looks as if all orders are being placed in the AM except between 12:00 and 12:59.

I am using a Mysql data base, and tried timestamp and datestamp with the same results.

Sign in to reply to this post

Jason ByrnesWebAssist

yes, the order information is stored into the database on the confirm page.

on the confirm page, open the server behaviors panel, then double click on the eCart Store order Summary behavior, what is the code there for the order data column?

Sign in to reply to this post

georgevargasa302189

It is set to the following

Order Date <?php echo (date('Y-m-d h:i:s')); ?>

With the type set to date.

Sign in to reply to this post

Jason ByrnesWebAssist

see the php date manual page:
function.date.php




either use a capitol H to return the hour in 24 hour format, add a lower case "a" to output Lowercase am / pm at the end, or add an upper case "A" for upper case AM / PM

<?php echo (date('Y-m-d h:i:s a')); ?>
would output: 2011-07-13 05:29:48 pm

<?php echo (date('Y-m-d h:i:s A')); ?>
would output: 2011-07-13 05:29:48 PM

<?php echo (date('Y-m-d H:i:s')); ?>
would output: 2011-07-13 17:29:48

Sign in to reply to this post

georgevargasa302189

Thank you!

I got all my other order dates to display in the proper format but it assumed that the database value was in the standard mysql format.

This fixed every thing for me.

Thanks again.

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

Sign in to reply to this post

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

Content

rating

Layout

rating

Ease of use

rating

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...