new DateTimeZone and html encoding [message #172827] |
Fri, 04 March 2011 08:39  |
polilop
Messages: 5 Registered: March 2011
Karma: 0
|
Junior Member |
|
|
when trying to do this :
$oldTZone= new DateTimeZone("Pacific Time (US & Canada");
or
$oldTZone=timezone_open("Pacific Time (US & Canada")
i get
Unknown or bad timezone (Pacific Time (US & Canada))
it seems that it encodes the &. How can i disable it from doing so?
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: new DateTimeZone and html encoding [message #172845 is a reply to message #172841] |
Sat, 05 March 2011 03:41   |
matt[1]
Messages: 40 Registered: September 2010
Karma: 0
|
Member |
|
|
On Friday, March 4, 2011 11:28:32 AM UTC-5, Erwin Moller wrote:
> On 3/4/2011 3:55 PM, matt wrote:
>> Fairly certain what's going on here is PHP is html-encoding the& in the warning on the way out. It's not an issue of DateTime encoding it on the way in.
>>
>> Your DateTime constructor is more likely failing because of the unmatched parenthesis you're sending it: "Pacific Time (US& Canada"
>
> erm......
>
> You can spot the googlegroup-users very easily:
> 1) They didn't read what others wrote many hour before.
> 2) They respond without using the "References", and thus create
> topthreads all the time, while they are actually responding to an
> existing thread.
Yes, we're the ones who acknowledge that GG is not the best newsreader on the planet, but still usable if your company's firewall disallows nntp, as I have done in the past in this group.
> Matt, I don't want to be rude. ;-)
Then don't be.
> But please stop using Google Groups.
> If you must, I heard the 'classic interface' (whatever that is) is less
> broken than their latest greatest.
I'll look into that. In turn, I'll ask that you remain more concerned with the content of my posts than the method of delivery. This is all I have to say on the matter. I won't allow this to turn into an OT flame war.
Matt
|
|
|
Re: new DateTimeZone and html encoding [message #172846 is a reply to message #172845] |
Sat, 05 March 2011 04:14   |
Jerry Stuckle
Messages: 2598 Registered: September 2010
Karma: 0
|
Senior Member |
|
|
On 3/4/2011 10:41 PM, matt wrote:
> On Friday, March 4, 2011 11:28:32 AM UTC-5, Erwin Moller wrote:
>> On 3/4/2011 3:55 PM, matt wrote:
>>> Fairly certain what's going on here is PHP is html-encoding the& in the warning on the way out. It's not an issue of DateTime encoding it on the way in.
>>>
>>> Your DateTime constructor is more likely failing because of the unmatched parenthesis you're sending it: "Pacific Time (US& Canada"
>>
>> erm......
>>
>> You can spot the googlegroup-users very easily:
>> 1) They didn't read what others wrote many hour before.
>> 2) They respond without using the "References", and thus create
>> topthreads all the time, while they are actually responding to an
>> existing thread.
>
> Yes, we're the ones who acknowledge that GG is not the best newsreader on the planet, but still usable if your company's firewall disallows nntp, as I have done in the past in this group.
>
>> Matt, I don't want to be rude. ;-)
>
> Then don't be.
>
>> But please stop using Google Groups.
>> If you must, I heard the 'classic interface' (whatever that is) is less
>> broken than their latest greatest.
>
> I'll look into that. In turn, I'll ask that you remain more concerned with the content of my posts than the method of delivery. This is all I have to say on the matter. I won't allow this to turn into an OT flame war.
>
> Matt
Matt,
Erwin has a very valid point. Not keeping messages in the thread
completely screws up the continuity.
I suggest YOU pay attention to the delivery; everyone else who reads
your messages with a real newsreader sees it. You will not win any
friends the way you're going, and fewer and fewer people will respond to
your posts.
And this is not an OT flame war. This is how it is.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
|
|
|
OT Re: new DateTimeZone and html encoding [message #172852 is a reply to message #172846] |
Sat, 05 March 2011 16:08   |
Twayne
Messages: 135 Registered: September 2010
Karma: 0
|
Senior Member |
|
|
In news:iksdc0$ju8$1(at)news(dot)eternal-september(dot)org,
Jerry Stuckle <jstucklex(at)attglobal(dot)net> typed:
:: On 3/4/2011 10:41 PM, matt wrote:
::: On Friday, March 4, 2011 11:28:32 AM UTC-5, Erwin Moller
::: wrote:
:::: On 3/4/2011 3:55 PM, matt wrote:
::::: Fairly certain what's going on here is PHP is
::::: html-encoding the& in the warning on the way out.
::::: It's not an issue of DateTime encoding it on the way
::::: in.
:::::
::::: Your DateTime constructor is more likely failing
::::: because of the unmatched parenthesis you're sending it:
::::: "Pacific Time (US& Canada"
::::
:::: erm......
::::
:::: You can spot the googlegroup-users very easily:
:::: 1) They didn't read what others wrote many hour before.
:::: 2) They respond without using the "References", and thus
:::: create topthreads all the time, while they are actually
:::: responding to an existing thread.
:::
::: Yes, we're the ones who acknowledge that GG is not the
::: best newsreader on the planet, but still usable if your
::: company's firewall disallows nntp, as I have done in the
::: past in this group.
:::
:::: Matt, I don't want to be rude. ;-)
:::
::: Then don't be.
:::
:::: But please stop using Google Groups.
:::: If you must, I heard the 'classic interface' (whatever
:::: that is) is less broken than their latest greatest.
:::
::: I'll look into that. In turn, I'll ask that you remain
::: more concerned with the content of my posts than the
::: method of delivery. This is all I have to say on the
::: matter. I won't allow this to turn into an OT flame war.
:::
::: Matt
::
:: Matt,
::
:: Erwin has a very valid point. Not keeping messages in the
:: thread completely screws up the continuity.
::
:: I suggest YOU pay attention to the delivery; everyone else
:: who reads your messages with a real newsreader sees it.
:: You will not win any friends the way you're going, and
:: fewer and fewer people will respond to your posts.
::
:: And this is not an OT flame war. This is how it is.
Maybe not but you've always got to bitch about something stuckie. Sticking
your nose in was uncalled for and sure smacks of an attempt to fan flames to
me. Crawl back home why don't you?
And I'm only commenting because I knew almost word for word what you'd say
and just had to see if I was right, but I won't be reponding to you so flail
away if you must. Thanks for the chuckle.
::
:: --
:: ==================
:: Remove the "x" from my email address
:: Jerry Stuckle
:: JDS Computer Training Corp.
:: jstucklex(at)attglobal(dot)net
:: ==================
|
|
|
|
|
|
OT: new DateTimeZone and html encoding [message #172857 is a reply to message #172846] |
Sat, 05 March 2011 20:07   |
BootNic
Messages: 10 Registered: November 2010
Karma: 0
|
Junior Member |
|
|
On Fri, 04 Mar 2011 23:14:47 -0500 Jerry Stuckle
<jstucklex(at)attglobal(dot)net> wrote:
>> On Friday, March 4, 2011 11:28:32 AM UTC-5, Erwin Moller wrote:
[snip]
>>> 2) They respond without using the "References", and thus create
>>> topthreads all the time, while they are actually responding to
>>> an existing thread.
[snip]
>>> But please stop using Google Groups. If you must, I heard the
>>> 'classic interface' (whatever that is) is less broken than their
>>> latest greatest.
[snip]
> Erwin has a very valid point. Not keeping messages in the thread
> completely screws up the continuity.
[snip]
> everyone else who reads your messages with a real newsreader sees
> it.
The newsreader I have chosen to use does not misplace the message.
I would have never known that the References was missing or that it
caused any issues if it were not pointed out in this thread.
I suppose some newsreaders are better then others. Different
strengths and weakness.
[snip]
--
BootNic http://bootnic.bounceme.net Sat Mar 5, 2011 03:07 pm
Get your facts first, and then you can distort them as much as you please.
*Mark Twain*
|
|
|
|
Re: OT: new DateTimeZone and html encoding [message #172859 is a reply to message #172857] |
Sat, 05 March 2011 20:26   |
Jerry Stuckle
Messages: 2598 Registered: September 2010
Karma: 0
|
Senior Member |
|
|
On 3/5/2011 3:07 PM, BootNic wrote:
> On Fri, 04 Mar 2011 23:14:47 -0500 Jerry Stuckle
> <jstucklex(at)attglobal(dot)net> wrote:
>
>>> On Friday, March 4, 2011 11:28:32 AM UTC-5, Erwin Moller wrote:
>
> [snip]
>
>>>> 2) They respond without using the "References", and thus create
>>>> topthreads all the time, while they are actually responding to
>>>> an existing thread.
>
> [snip]
>
>>>> But please stop using Google Groups. If you must, I heard the
>>>> 'classic interface' (whatever that is) is less broken than their
>>>> latest greatest.
>
> [snip]
>
>> Erwin has a very valid point. Not keeping messages in the thread
>> completely screws up the continuity.
>
> [snip]
>
>> everyone else who reads your messages with a real newsreader sees
>> it.
>
> The newsreader I have chosen to use does not misplace the message.
>
> I would have never known that the References was missing or that it
> caused any issues if it were not pointed out in this thread.
>
> I suppose some newsreaders are better then others. Different
> strengths and weakness.
>
> [snip]
>
>
Which is really interesting, because there is no reference in the
message header.
So what you're saying is your news reader goes by the Subject: line?
That would be hell in the case you have multiple threads with the same
subject, as I've seen in many newsgroups. Talk about a mess!
But I guess you're right - some news readers are better than others.
Glad I'm using one of the ones which works correctly.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
|
|
|
|
Re: OT: new DateTimeZone and html encoding [message #172861 is a reply to message #172857] |
Sun, 06 March 2011 13:49   |
Thomas 'PointedEars'
Messages: 701 Registered: October 2010
Karma: 0
|
Senior Member |
|
|
BootNic wrote:
> Jerry Stuckle wrote:
>>> On Friday, March 4, 2011 11:28:32 AM UTC-5, Erwin Moller wrote:
>> Erwin has a very valid point. Not keeping messages in the thread
>> completely screws up the continuity.
>>
>> everyone else who reads your messages with a real newsreader sees
>> it.
>
> The newsreader I have chosen to use does not misplace the message.
>
> I would have never known that the References was missing or that it
> caused any issues if it were not pointed out in this thread.
It is not always a good idea to group postings by Subject. Subject change
can easily lead to display new threads where nothing is really new. The
References header, on the other hand, is always reliable, unless omitted or
mutilated by borken excuses of newsreader software like Google Groups.
> I suppose some newsreaders are better then others. Different
> strengths and weakness.
Indeed. Yours has the weaknesses that it produces attribution novels, and
that it posts multi-part messages to a plain-text newsgroup for posting a
PGP/GnuPG signature.
HTH
PointedEars
--
Danny Goodman's books are out of date and teach practices that are
positively harmful for cross-browser scripting.
-- Richard Cornford, cljs, <cife6q$253$1$8300dec7(at)news(dot)demon(dot)co(dot)uk> (2004)
|
|
|
|
|
|
Re: new DateTimeZone and html encoding [message #172976 is a reply to message #172880] |
Mon, 14 March 2011 13:57  |
Erwin Moller
Messages: 228 Registered: September 2010
Karma: 0
|
Senior Member |
|
|
On 3/10/2011 3:34 AM, Twayne wrote:
> In news:4d7499a1$0$81484$e4fe514c(at)news(dot)xs4all(dot)nl,
> Erwin Moller<Since_humans_read_this_I_am_spammed_too_much(at)spamyourself(dot)com>
> typed:
> :: On 3/5/2011 5:50 PM, polilop wrote:
> :::
> :::
> :::: I don4t jnow, what you4re doing, but i would do it like
> :::: that: $timeszone = array(.........all timezones in here);
> :::: if (!in_array($outlook_timezone, $timezones)
> :::: find_the_correct_timezoen_for_o2007();
> :::
> :::: etc....
> :::
> :::: Best
> :::
> ::: It irritates that all use the standard notation for time
> ::: zones http://www.php.net/manual/en/timezones.php
> ::: all except Micr...ft
> ::: so now i have to look for all time zones that they use
> ::: and pair it to the ones php uses.
> ::: It is silly actually
> ::
> :: It is standard behavior for M$.
> :: You can *never* expect any piece of software made by M$ to
> :: behave reasonable.
> :: Or even behave the same way next way you restart.
> :: That is why hordes of developers run away from them,
> :: except the ones that make a living
> :: selling/repairing/operating their poor software. But the
> :: masses won't. :-/
>
> I have never found MS applications to be any different from startup to the
> next startup. And it's rather stupid to think that would be the reason
> people "run away" from them. You're so shallow and myopic it's almost
> pathetic. They run away from MS because of unfair prices and their ability
> to single-source and ability to force obsoletion of their own apps, forcing
> people to buy new subscriptions they don't need.
> You need to learn to thiMk!
>
>
Fine Twayne,
List it under "Erwin's opinion" then, and never look at it again, OK?
The fact that this very thread gives yet another example of MS screwing
up (inventing new notations for timezones) can happily be ignored then
(by you).
Erwin Moller
--
"That which can be asserted without evidence, can be dismissed without
evidence."
-- Christopher Hitchens
|
|
|