Re: [PHP] Re: Which function returns a correct ISO8601 date?

2013-09-07 Thread Simon Schick
Hi, Alessandro Would it be worth noting somewhere, that these two implementations of ISO8601 differ? Because I needed the DateTime::ATOM way to save the timezone ... Even so the other one was also about ISO 8601 ... My system is working towards a search-engine called ElasticSearch. This one makes

Re: [PHP] char set ?

2013-09-07 Thread Ashley Sheridan
On Sat, 2013-09-07 at 18:21 +0200, georg chambert wrote: > This Q is possibly rather HTML (is there a good list for that...) > > anyways; > Im in Sweden, and have done som pages with Swedish text, however our special > (weird) characters åäö > comes out wrong when displayd in browser, would be

[PHP] char set ?

2013-09-07 Thread georg chambert
This Q is possibly rather HTML (is there a good list for that...) anyways; Im in Sweden, and have done som pages with Swedish text, however our special (weird) characters åäö comes out wrong when displayd in browser, would be nice if I could tag the text and keep the file as is rather than chan

[PHP] Re: Which function returns a correct ISO8601 date?

2013-09-07 Thread Alessandro Pellizzari
On Sat, 07 Sep 2013 14:47:00 +0200, Simon Schick wrote: > The method date("c") actually formats a date, fitting to the format > defined in the constant DateTime::ATOM. > > Are both formats (with and without colon) valid for ISO8601, or is the > documentation for the method date() wrong? Yes: ht

[PHP] Which function returns a correct ISO8601 date?

2013-09-07 Thread Simon Schick
Hi, all Some days ago, I needed a date, formatted as date("c") ... To be a bit more object-oriented, I worked with an instance of DateTime. My first thought was: "As the documenting for date() defines 'c' as ISO8601, I can take the constant provided in the DateTime object ... right?" ... and that