473,387 Members | 1,353 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

date.timezone = 'UCT' in php.ini not working

The server I use has PHP Version 4.4.7 and this instruction creates an
error:

<?php date_default_timezone_set('UCT'); echo date('h:ia');?>

php Help advises me to change php.ini instead:

date.timezone = 'UCT'

However, when I do the time shown seems to be that of the server, not
of UCT.

What am I doing wrong?

Regards,

Jan Nordgreen

Jul 9 '07 #1
11 11849
damezumari wrote:
However, when I do the time shown seems to be that of the server, not
of UCT.
What is UCT? Do you mean UTC?

--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.12-12mdksmp, up 19 days, 15:08.]

demiblog 0.2.0 Released
http://tobyinkster.co.uk/blog/2007/0...emiblog-0.2.0/
Jul 10 '07 #2
Thanks!

Jul 10 '07 #3

What is UTC ?
Jul 12 '07 #4
..oO(cl***@notindia.ninfo)
>What is UTC ?
http://en.wikipedia.org/wiki/UTC
http://www.google.com/search?q=utc

Micha
Jul 13 '07 #5
In article <h5********************************@4ax.com>, ne*****@gmx.de
says...
.oO(cl***@notindia.ninfo)
What is UTC ?

http://e.org/wiki/UTC
http://www./search?q=utc

Micha
I asked for an answer here not for a bunch of advertising
for websites.
Jul 13 '07 #6
..oO(cl***@notindia.info)
>In article <h5********************************@4ax.com>, ne*****@gmx.de
says...
>>
http://e.org/wiki/UTC
http://www./search?q=utc

I asked for an answer here not for a bunch of advertising
for websites.
*LOL* You're kidding, aren't you? The links I posted would have given
you tons of answers and detailed explanations.

You should always try to search for an answer yourself before posting in
a newsgroup. That way you'll get an answer _much_ faster in many cases.
Learn how to use a search engine and Wikipedia.

Micha
Jul 13 '07 #7
cl***@notindia.info wrote:
In article <h5********************************@4ax.com>, ne*****@gmx.de
says...
>.oO(cl***@notindia.ninfo)
>>What is UTC ?
http://e.org/wiki/UTC
http://www./search?q=utc

Micha

I asked for an answer here not for a bunch of advertising
for websites.
No, he's telling you to look up the answer. It's very easy to find.

Before asking here you should at least TRY to find the answer on your
own. We aren't being paid to be your personal answer machines.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Jul 13 '07 #8
In article <bv********************************@4ax.com>, ne*****@gmx.de
says...
.oO(cl***@notindia.info)
In article <h5********************************@4ax.com>, ne*****@gmx.de
says...
>
http://e.org/wiki/UTC
http://www./search?q=utc
I asked for an answer here not for a bunch of advertising
for websites.

*LOL* You're kidding, aren't you? The links I posted would have given
you tons of answers and detailed explanations.

You should always try to search for an answer yourself before posting in
a newsgroup. That way you'll get an answer _much_ faster in many cases.
Learn how to use a search engine and Wikipedia.

Micha
What is wrong with you newsgroup morons?

Doesnt it occur to you I might just have done that if I were able?

I asked in a newsgroup because I dont have WEB access at the moment.

Stop being a newsgroup smart arse and just answer the questions asked or
keep your idiot mouth shut.

Also this is not an advertising forum for commercial web sites - your
post contravenes the group charter.

Learn to answer the questions asked instead of making up your own half
witted ones to answer wasting everyones time.

Jul 13 '07 #9
rf
<cl***@notindia.infowrote in message
news:MP************************@news-text.blueyonder.co.uk...
In article <bv********************************@4ax.com>, ne*****@gmx.de
says...
>.oO(cl***@notindia.info)
>In article <h5********************************@4ax.com>, ne*****@gmx.de
says...

http://e.org/wiki/UTC
http://www./search?q=utc

I asked for an answer here not for a bunch of advertising
for websites.

*LOL* You're kidding, aren't you? The links I posted would have given
you tons of answers and detailed explanations.

You should always try to search for an answer yourself before posting in
a newsgroup. That way you'll get an answer _much_ faster in many cases.
Learn how to use a search engine and Wikipedia.

Micha

What is wrong with you newsgroup morons?
If you *really* don't know what UTC is then when you do find out, you are
also going to find out who the actual moron is.
Doesnt it occur to you I might just have done that if I were able?
No it didn't occur to us. You haven't told us yet. You haven't actually told
us anything, except that you are an arrogant bastard.
I asked in a newsgroup because I dont have WEB access at the moment.
Ah, so now we know. You have usenet access but not web access. What a
strange condition.

So trot down to the local library and use their computer. The amout of time
you have wasted already on this would have allowed you to drive to the next
states local library.
Stop being a newsgroup smart arse and just answer the questions asked or
keep your idiot mouth shut.
OK. I will keep my mouth shut on your answer. I do know the answer to your
trivial question. I however am not now going to tell *you*. Stop being an
arrogant bastard.
Also this is not an advertising forum for commercial web sites - your
post contravenes the group charter.
Har har har! Please dig up the groups charter and read it. Telling morons
where google groups is so they can answer their own trivial question is
probably the best thing to be done in this or any other newsgroup.
Learn to answer the questions asked instead of making up your own half
witted ones to answer wasting everyones time.
You obviously feel you did not get the service you required here. Why don't
you ask for your money back.

--
Richard.
Jul 13 '07 #10
clive wrote:
What is UTC ?
It's an bizarre compromise abbreviation created for what the English
wanted to call "CUT" and the French wanted to call "TUC".

Hope that helps.

--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.12-12mdksmp, up 22 days, 13:27.]

demiblog 0.2.0 Released
http://tobyinkster.co.uk/blog/2007/0...emiblog-0.2.0/
Jul 13 '07 #11
..oO(cl***@notindia.info)
>What is wrong with you newsgroup morons?
The question was answered in an appropriate way. Instead of giving a too
short and probably incorrect answer and instead of posting a two-hundred
lines sermon I just posted two references. That's common and efficient,
for both the poster and the reader.
>Doesnt it occur to you I might just have done that if I were able?
No. And calling the posted links "advertisements" indicates that you
wouldn't have been able at all, even with web access.
>I asked in a newsgroup because I dont have WEB access at the moment.
You didn't tell. Is this to be a stress test for our chrystal balls? A
short "please post here, I don't have web access ATM" would have been
_much_ better than your stupid insults. This is a free service, not a
helpdesk!
>Stop being a newsgroup smart arse and just answer the questions asked or
keep your idiot mouth shut.

Also this is not an advertising forum for commercial web sites
Wikipedia is commercial? Searching on Google is commercial? Oh dear.
>your
post contravenes the group charter.
Did you look up the group charter? Do you even know what a charter is?
>Learn to answer the questions asked instead of making up your own half
witted ones to answer wasting everyones time.
Please forgive me for having wasted my time with you.

*plonk*

EOT for me
Micha
Jul 13 '07 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Bob Sanderson | last post by:
I have a script that reads the computer date and writes it to a copyrite footer on a web page. The idea is to avoid having to update each page manually at the start of a new year. It works fine...
1
by: cnliou | last post by:
Hi! If I correctly understand v7.4 manual, value, say, '2003-11-26 12:00' in TIMESTAMP WITHOUT TIMEZONE column should output '2003-11-26 19:00' for "+08:00" timezone. The following test...
3
by: chucher | last post by:
I'm trying to put a filter into some forms or filters but the filter don´t work properly. I'm using the format dd-mm-yyyy. The forms and the tables always shows how dates in that format. But...
3
by: cmccarthy | last post by:
Hello all, I have search for hours over the internet trying to find a solution with no luck. I am hoping someone here may have to the knowledge to help me with this problem. I am trying to add the...
1
by: leosuth | last post by:
Hi I've got the following function: public static List<Order> FilterByDateRange(List<Order> _list,string _sdate, string _edate) { if (_list.Count == 0) return null; ...
6
by: larsy87 | last post by:
Hi all, I'm having a problem with either the date() func or the strtotime() func. With the code written like below, the year inserted will always be 2010. $subchilddob = date("y-m-d",...
1
by: RamaK | last post by:
There is column ( Data Type – Text) which has dates ( in both MM/DD/YYYY and DD/MM/YYYY format) , when pulling all the records between two dates say 09/01/2010 and 09/30/2010, it works fine on my...
2
dlite922
by: dlite922 | last post by:
Hey guys, Sometimes it's the most simplest things in life that drive you insane. I'm no complete MySQL noob and I'm not doing anything fancy by any stretch. My table contains two date-times: ...
3
by: bryman | last post by:
I haven't experienced this problem of assigning Date or Now to a date field's default property so the form shows the current date. Of course, this is to help ease data entry for the user. The...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.