FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » new DateTimeZone and html encoding
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
new DateTimeZone and html encoding [message #172827] Fri, 04 March 2011 08:39 Go to next message
polilop is currently offline  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 #172829 is a reply to message #172827] Fri, 04 March 2011 09:08 Go to previous messageGo to next message
alvaro.NOSPAMTHANX is currently offline  alvaro.NOSPAMTHANX
Messages: 277
Registered: September 2010
Karma: 0
Senior Member
El 04/03/2011 9:39, polilop escribió/wrote:
> 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?

You can disable the html_errors directive, e.g.:

ini_set('html_errors', FALSE);




--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--
Re: new DateTimeZone and html encoding [message #172830 is a reply to message #172827] Fri, 04 March 2011 09:20 Go to previous messageGo to next message
Erwin Moller is currently offline  Erwin Moller
Messages: 228
Registered: September 2010
Karma: 0
Senior Member
On 3/4/2011 9:39 AM, polilop wrote:
> 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?
>

Hi,

Are you asking how to get rig of the & and get a &, or are you
asking why you get an error on DateTimeZone?

Regards,
Erwin Moller


--
"That which can be asserted without evidence, can be dismissed without
evidence."
-- Christopher Hitchens
Re: new DateTimeZone and html encoding [message #172831 is a reply to message #172830] Fri, 04 March 2011 10:11 Go to previous messageGo to next message
polilop is currently offline  polilop
Messages: 5
Registered: March 2011
Karma: 0
Junior Member
I am asking how to get rid of &?



"Erwin Moller" wrote in message
news:4d70aef2$0$32470$e4fe514c(at)news(dot)xs4all(dot)nl...

On 3/4/2011 9:39 AM, polilop wrote:
> 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?
>

Hi,

Are you asking how to get rig of the & and get a &, or are you
asking why you get an error on DateTimeZone?

Regards,
Erwin Moller


--
"That which can be asserted without evidence, can be dismissed without
evidence."
-- Christopher Hitchens
Re: new DateTimeZone and html encoding [message #172833 is a reply to message #172831] Fri, 04 March 2011 10:38 Go to previous messageGo to next message
Erwin Moller is currently offline  Erwin Moller
Messages: 228
Registered: September 2010
Karma: 0
Senior Member
On 3/4/2011 11:11 AM, polilop wrote:
> I am asking how to get rid of &?
>

[Please don't toppost]

You can go with Álvaro G. Vicario suggestion.

But I am a bit surprised: You are talking about the format of an error
(WARNING to be exact).

Why do you want to format a WARNING better?
I would be inclined to set it up in such a way my system tests for the
timezone.

Regards,
Erwin Moller

>
>
> "Erwin Moller" wrote in message
> news:4d70aef2$0$32470$e4fe514c(at)news(dot)xs4all(dot)nl...
>
> On 3/4/2011 9:39 AM, polilop wrote:
>> 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?
>>
>
> Hi,
>
> Are you asking how to get rig of the & and get a &, or are you
> asking why you get an error on DateTimeZone?
>
> Regards,
> Erwin Moller
>
>


--
"That which can be asserted without evidence, can be dismissed without
evidence."
-- Christopher Hitchens
Re: new DateTimeZone and html encoding [message #172834 is a reply to message #172827] Fri, 04 March 2011 10:54 Go to previous messageGo to next message
Bernd Schulz is currently offline  Bernd Schulz
Messages: 10
Registered: September 2010
Karma: 0
Junior Member
Am 04.03.2011 09:39, schrieb polilop:
> 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?
>
No.
The supported timeszones are listed here:
http://www.php.net/manual/en/timezones.php
Re: new DateTimeZone and html encoding [message #172835 is a reply to message #172834] Fri, 04 March 2011 11:12 Go to previous messageGo to next message
polilop is currently offline  polilop
Messages: 5
Registered: March 2011
Karma: 0
Junior Member
"Bernd Schulz" wrote in message
news:4d70c4ef$0$6986$9b4e6d93(at)newsspool4(dot)arcor-online(dot)net...

Am 04.03.2011 09:39, schrieb polilop:
> 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?
>
No.
The supported timeszones are listed here:
http://www.php.net/manual/en/timezones.php

Yap, youre right. I'm using icalc to read ics exported from outlook.
some versions of office give the timezones as listed,
but office 2007 gives as i stated above so i thought they were allso legit.
Re: new DateTimeZone and html encoding [message #172836 is a reply to message #172835] Fri, 04 March 2011 11:31 Go to previous messageGo to next message
Denis McMahon is currently offline  Denis McMahon
Messages: 634
Registered: September 2010
Karma: 0
Senior Member
On 04/03/11 11:12, polilop wrote:

> but office 2007 gives as i stated above so i thought they were allso legit.

I wasn't aware that php was part of the ms office suite.

Rgds

Denis McMahon
Re: new DateTimeZone and html encoding [message #172837 is a reply to message #172836] Fri, 04 March 2011 11:43 Go to previous messageGo to next message
polilop is currently offline  polilop
Messages: 5
Registered: March 2011
Karma: 0
Junior Member
"Denis McMahon" wrote in message
news:4d70cdb8$0$9918$bed64819(at)gradwell(dot)net...

On 04/03/11 11:12, polilop wrote:

> but office 2007 gives as i stated above so i thought they were allso
> legit.

> I wasn't aware that php was part of the ms office suite.

> Rgds

> Denis McMahon

Nether was I
Re: new DateTimeZone and html encoding [message #172838 is a reply to message #172835] Fri, 04 March 2011 12:20 Go to previous messageGo to next message
alvaro.NOSPAMTHANX is currently offline  alvaro.NOSPAMTHANX
Messages: 277
Registered: September 2010
Karma: 0
Senior Member
El 04/03/2011 12:12, polilop escribió/wrote:
>> $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?
>>
> No.
> The supported timeszones are listed here:
> http://www.php.net/manual/en/timezones.php
>
> Yap, youre right. I'm using icalc to read ics exported from outlook.
> some versions of office give the timezones as listed,
> but office 2007 gives as i stated above so i thought they were allso legit.

It's funny but American web sites love to provide time in their local
time (which is fine, I do it as well) and identify the time zone as
"Pacific Time", as if the Pacific ocean was a small lake near Greenwich.

I presume your actual question is how to parse a string with a free
English description of a time zone and extract the actual information. I
see no other way than compiling a database with all the possible variations.

ICS is (supposedly) a standardised format. The funny thing is that «does
not define a naming convention for time zone identifiers»

http://tools.ietf.org/html/rfc5545#section-3.2.19

At least, there's a link to a public domain TZ database...


--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--
Re: new DateTimeZone and html encoding [message #172839 is a reply to message #172834] Fri, 04 March 2011 12:23 Go to previous messageGo to next message
me is currently offline  me
Messages: 192
Registered: September 2010
Karma: 0
Senior Member
On 3/4/2011 5:54 AM, Bernd Schulz wrote:
> Am 04.03.2011 09:39, schrieb polilop:
>> 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?
>>
> No.
> The supported timeszones are listed here:
> http://www.php.net/manual/en/timezones.php

Added to the above, this may help.

http://us.php.net/manual/en/datetimezone.construct.php

Bill B
Re: new DateTimeZone and html encoding [message #172840 is a reply to message #172827] Fri, 04 March 2011 14:55 Go to previous messageGo to next message
matt[1] is currently offline  matt[1]
Messages: 40
Registered: September 2010
Karma: 0
Member
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"
Re: new DateTimeZone and html encoding [message #172841 is a reply to message #172840] Fri, 04 March 2011 16:28 Go to previous messageGo to next message
Erwin Moller is currently offline  Erwin Moller
Messages: 228
Registered: September 2010
Karma: 0
Senior Member
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.

Matt, I don't want to be rude. ;-)
But please stop using Google Groups.
If you must, I heard the 'classic interface' (whatever that is) is less
broken than their latest greatest.

Thanks!

Regards,
Erwin Moller



--
"That which can be asserted without evidence, can be dismissed without
evidence."
-- Christopher Hitchens
Re: new DateTimeZone and html encoding [message #172843 is a reply to message #172835] Fri, 04 March 2011 20:11 Go to previous messageGo to next message
Bernd Schulz is currently offline  Bernd Schulz
Messages: 10
Registered: September 2010
Karma: 0
Junior Member
Am 04.03.2011 12:12, schrieb polilop:
>
>
> "Bernd Schulz" wrote in message
> news:4d70c4ef$0$6986$9b4e6d93(at)newsspool4(dot)arcor-online(dot)net...
>
> Am 04.03.2011 09:39, schrieb polilop:
>> 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?
>>
> No.
> The supported timeszones are listed here:
> http://www.php.net/manual/en/timezones.php
>
> Yap, youre right. I'm using icalc to read ics exported from outlook.
> some versions of office give the timezones as listed,
> but office 2007 gives as i stated above so i thought they were allso legit.

I don´t jnow, what you´re 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
Re: new DateTimeZone and html encoding [message #172845 is a reply to message #172841] Sat, 05 March 2011 03:41 Go to previous messageGo to next message
matt[1] is currently offline  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 Go to previous messageGo to next message
Jerry Stuckle is currently offline  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 Go to previous messageGo to next message
Twayne is currently offline  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
:: ==================
Re: new DateTimeZone and html encoding [message #172853 is a reply to message #172843] Sat, 05 March 2011 16:50 Go to previous messageGo to next message
polilop is currently offline  polilop
Messages: 5
Registered: March 2011
Karma: 0
Junior Member
> I don´t jnow, what you´re 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
Re: OT Re: new DateTimeZone and html encoding [message #172854 is a reply to message #172852] Sat, 05 March 2011 18:22 Go to previous messageGo to next message
Michael Fesser is currently offline  Michael Fesser
Messages: 215
Registered: September 2010
Karma: 0
Senior Member
.oO(Twayne)

> In news:iksdc0$ju8$1(at)news(dot)eternal-september(dot)org,
> Jerry Stuckle <jstucklex(at)attglobal(dot)net> typed:
> :: […]
> ::
> :: And this is not an OT flame war. This is how it is.
> […]

You still have broken quote signs, which is almost as bad as a missing
references header. Please fix that.

Micha
Re: new DateTimeZone and html encoding [message #172855 is a reply to message #172845] Sat, 05 March 2011 18:28 Go to previous messageGo to next message
Michael Fesser is currently offline  Michael Fesser
Messages: 215
Registered: September 2010
Karma: 0
Senior Member
.oO(matt)

> On Friday, March 4, 2011 11:28:32 AM UTC-5, Erwin Moller wrote:
>
>> 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.

Which is quite hard if your posts are not where they belong. Without
proper headers (and quote signs) following a thread is more work and
more time-consuming than necessary. Don't be surprised if people filter
your posts out or automatically mark them read because of this. If you
want to be read, you should follow at least the basic rules.

Micha
OT: new DateTimeZone and html encoding [message #172857 is a reply to message #172846] Sat, 05 March 2011 20:07 Go to previous messageGo to next message
BootNic is currently offline  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 Re: new DateTimeZone and html encoding [message #172858 is a reply to message #172852] Sat, 05 March 2011 20:23 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
>
> 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.
>
>

No, you're commenting because you're only a troll, and a stoopid one at
that. If you couldn't bitch about my posts, you wouldn't have anything
to say.

I knew you were going to stick your fat arse in. Thanks a lot - I just
won a $10 bet.

--
==================
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 #172859 is a reply to message #172857] Sat, 05 March 2011 20:26 Go to previous messageGo to next message
Jerry Stuckle is currently offline  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 #172860 is a reply to message #172857] Sat, 05 March 2011 22:17 Go to previous messageGo to next message
Michael Fesser is currently offline  Michael Fesser
Messages: 215
Registered: September 2010
Karma: 0
Senior Member
.oO(BootNic)

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

Just different ways to achieve the same thing. The preferred and more
reliable way are the references headers, the less reliable way is called
threading by subject.

Micha
Re: OT: new DateTimeZone and html encoding [message #172861 is a reply to message #172857] Sun, 06 March 2011 13:49 Go to previous messageGo to next message
Thomas 'PointedEars'  is currently offline  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 #172866 is a reply to message #172853] Mon, 07 March 2011 08:39 Go to previous messageGo to next message
Erwin Moller is currently offline  Erwin Moller
Messages: 228
Registered: September 2010
Karma: 0
Senior Member
On 3/5/2011 5:50 PM, polilop wrote:
>
>
>> I don´t jnow, what you´re 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. :-/

Regards,
Erwin Moller


--
"That which can be asserted without evidence, can be dismissed without
evidence."
-- Christopher Hitchens
Re: new DateTimeZone and html encoding [message #172880 is a reply to message #172866] Thu, 10 March 2011 02:34 Go to previous messageGo to next message
Twayne is currently offline  Twayne
Messages: 135
Registered: September 2010
Karma: 0
Senior Member
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!
Re: new DateTimeZone and html encoding [message #172882 is a reply to message #172853] Thu, 10 March 2011 20:22 Go to previous messageGo to next message
Jo Schulze is currently offline  Jo Schulze
Messages: 15
Registered: January 2011
Karma: 0
Junior Member
polilop wrote:

> It irritates that all use the standard notation for time zones
> http://www.php.net/manual/en/timezones.php
> all except Micr...ft

That's perfectly ok according to M$. Why use standards, standards are
bad for improvements!

Look how M$ screwed up setlocale() by inventing a totally gross new
locale naming scheme...

> 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

To get a list of all timezones PHP is aware of at runtime use
timezone_identifiers_list() aka DateTimeZone::listIdentifiers()

See doc page for more info.
Re: new DateTimeZone and html encoding [message #172976 is a reply to message #172880] Mon, 14 March 2011 13:57 Go to previous message
Erwin Moller is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Stats comp.lang.php (last 7 days)
Next Topic: newbie question
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 10 12:30:47 GMT 2024

Total time taken to generate the page: 0.02784 seconds