Re: [Interest] Working with QDateTime's timezone information

2012-06-15 Thread Jan Kundrát
On 06/14/12 17:01, Jason H wrote: > What is the issue here? That QDateTime does not handle the +HH:MM in the > timezone string? > At most I would see this being a possible datastream version bump, with > a bit of code (No API changes? - I think we have what we need, just that > the TZ does not pers

Re: [Interest] Working with QDateTime's timezone information

2012-06-14 Thread Jason H
.) From: Konrad Rosenbaum To: interest@qt-project.org Sent: Wednesday, June 13, 2012 4:27 PM Subject: Re: [Interest] Working with QDateTime's timezone information Hi, On Wednesday 13 June 2012 11:29:36 Christian Gagneraud wrote: > Will Qt5 have better timezone support? 5.0.x - no, it h

Re: [Interest] Working with QDateTime's timezone information

2012-06-13 Thread John Layt
On 12 June 2012 15:26, Jan Kundrát wrote: > So, the questions: > > - Is there a publicly available way of doing what I want to do, ie. am I > missing something? Almost certainly not. In KDE we implemented our own KDateTime and KTimeZone classes to handle it properly, although QDateTime is used

Re: [Interest] Working with QDateTime's timezone information

2012-06-13 Thread John Layt
On 13 June 2012 21:27, Konrad Rosenbaum wrote: > Hi, > > On Wednesday 13 June 2012 11:29:36 Christian Gagneraud wrote: >> Will Qt5 have better timezone support? > > 5.0.x - no, it has about the same features in QDateTime as Qt4.x > > 5.1.x - maybe, depends on whether anyone actually has time to in

Re: [Interest] Working with QDateTime's timezone information

2012-06-13 Thread Konrad Rosenbaum
Hi, On Wednesday 13 June 2012 11:29:36 Christian Gagneraud wrote: > Will Qt5 have better timezone support? 5.0.x - no, it has about the same features in QDateTime as Qt4.x 5.1.x - maybe, depends on whether anyone actually has time to integrate it into Qt We talked about it at the Contributor S

Re: [Interest] Working with QDateTime's timezone information

2012-06-13 Thread Christian Gagneraud
On 12/06/12 19:05, Thiago Macieira wrote: > On terça-feira, 12 de junho de 2012 17.48.14, Jan Kundrát wrote: >>> You're entirely on your own if you touch the internals. Behaviour might >>> change in any release. >> >> Fair enough. The better question is then "any chances of making these >> two fun

Re: [Interest] Working with QDateTime's timezone information

2012-06-12 Thread Thiago Macieira
On terça-feira, 12 de junho de 2012 17.48.14, Jan Kundrát wrote: > > You're entirely on your own if you touch the internals. Behaviour might > > change in any release. > > Fair enough. The better question is then "any chances of making these > two functions public in a 4.x release"? None. If the

Re: [Interest] Working with QDateTime's timezone information

2012-06-12 Thread Jan Kundrát
Hi Thiago, On 06/12/12 17:31, Thiago Macieira wrote: > There isn't a way. The QTimezone feature has been pending for years. Right, it seems that the utcOffset won't survive a serialization to QDataStream (using Qt 4.8.1): QDateTime blah = QDateTime::fromString("1997-07-16T19:20:30+09:45", Qt

Re: [Interest] Working with QDateTime's timezone information

2012-06-12 Thread Thiago Macieira
On terça-feira, 12 de junho de 2012 16.26.08, Jan Kundrát wrote: > I'd like to save them into a QDataStream for further retrieval and after > loading them back, I'd love to show them both converted to the user's > local time and also in the original format, including the original time > zone inform

[Interest] Working with QDateTime's timezone information

2012-06-12 Thread Jan Kundrát
Hi, my application receives some dates in textual formats from the Internet; some of them are in RFC2822's format "Mon, 11 Jun 2012 13:35:56 -0700" (and other variants due to backward compatibility), others in RFC3501's "date-time" format which is "07-Mar-2007 15:03:32 +0100". I'd like to save the