|
The date() function. Here it is: Code: print date('l, F jS Y - H:i:s O-0600'); it appears as: Monday, March 5th 2007 - 17:32:12 +0000-0600 Gerald -----Original Message----- From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Don Freeman Sent: Monday, March 05, 2007 11:28 AM To: Web Enabling the AS400 / iSeries Subject: Re: [WEB400] Time is showing UTC, how do I offset? And you are using the date() function? That should always return the local date/time. Or are using the gmdate() function (returns UTC/GMT date/time)?
-----Original Message----- From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx]On Behalf Of Gerald Magnuson Sent: Monday, March 05, 2007 9:22 AM To: Web Enabling the AS400 / iSeries Subject: Re: [WEB400] Time is showing UTC, how do I offset? I am wanting to adjust the time displayed to compensate for my time zone. I did try to use the "O-0600" but that did not seem to work. It just put the Value "-0600" on the line, but did not adjust the time. I am wondering if I am missing something from my apache config? -----Original Message----- From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Don Freeman Sent: Monday, March 05, 2007 11:10 AM To: Web Enabling the AS400 / iSeries Subject: Re: [WEB400] Time is showing UTC, how do I offset? Not sure what you want (date formatting or adjusting the time to compensate for different time zones) but this is the best reference around for date/time formatting (as well as most other PHP related questions). http://us3.php.net/date-----Original Message----- From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx]On Behalf Of Gerald Magnuson Sent: Monday, March 05, 2007 8:58 AM To: Web Enabling the AS400 / iSeries Subject: [WEB400] Time is showing UTC, how do I offset? I'm brand spankin' new to web and PHP. On my "hello world" page I am trying to get the date and time to properly format. I only have the UTC time showing, even if I try theswitches for timezones (e, O) the time won't change. We are CST (which is -0600). Do I need to have some value in my config ? Thanks Gerald -- This is the Web Enabling the AS400 / iSeries (WEB400) mailing list To post a message email: WEB400@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/web400 or email: WEB400-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/web400.-- This is the Web Enabling the AS400 / iSeries (WEB400) mailing list To post a message email: WEB400@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/web400 or email: WEB400-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/web400. -- This is the Web Enabling the AS400 / iSeries (WEB400) mailing list To post a message email: WEB400@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/web400 or email: WEB400-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/web400.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.