close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Time Function incorrect

Thread began 2/19/2011 11:48 pm by reseller218363 | Last modified 2/20/2011 3:26 pm by reseller218363 | 1867 views | 2 replies |

reseller218363

Time Function incorrect

I'm currently testing a sport schedule website. the site is working geat. However, I'm The time function of the website is not working. The database consists of two fields. Date and Time. The date element is working Okay, only the time field that has the problem.

I want to be able to insert time into the database base on time zone with EST the Default time zone. Currently when I Insert time into the database (ex. 04:30 PM) the result, and update page change the PM to am, and I'm not sure if the code for changing the time zone is working.

PS.

(Ray Borduin) had worked on this problem, however the problem is incomplete.
Scheduled Premier Appointment:
Ticket # 123060
Continuing Premier Ticket # 123479

Sign in to reply to this post

Dave BuchholzBeta Tester

When you insert a date or time the local date / time zone of the server is used so for example if your server is in a region where the time is PST then that is the time zone used.

You can override this by placing this statement at the top of your page:

php:
/*

Set Timezone
---------------------------------------------------------- 
*/

ini_set('date.timezone', 'US/Eastern');



You can find a list of all the supported timezones here: timezones.php

Hope that helps

Sign in to reply to this post

reseller218363

Thanks Dave, for your quick reply

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