× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Using:

$time = date('H:i:s');

Should give you the local time on the server.  Or are you trying get the local 
time of the client and the server is in a different time zone?  That might be a 
little tricky as PHP is a server based language and really knows nothing about 
the clients' it is being displayed on.  For that you would probably want to use 
JavaScript. 

--
Ever had one of those days where you just felt like:
http://cosmoslair.com/BadDay.html ?



-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx 
[mailto:web400-bounces@xxxxxxxxxxxx]On
Behalf Of Gerald Magnuson
Sent: Monday, March 05, 2007 9:34 AM
To: Web Enabling the AS400 / iSeries
Subject: Re: [WEB400] Time is showing UTC, how do I offset?


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 the 
switches for time
zones (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.



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


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.