KF5: Parsing times with timezone abbreviations

Luca Beltrame lbeltrame at kde.org
Mon Mar 24 09:39:17 GMT 2014


Kevin Kofler wrote:


> In kdelibs 4, this should do what we want:
> dateTime = KDateTime::fromString(timeString, "%H:%M
> %Z").toLocalZone().dateTime(); but KDateTime is deprecated in KF5.

Can you try looking at KFormat? The KF5 porting notes explicitly mention 
that.

-- 
Luca Beltrame - KDE Forums team
KDE Science supporter
GPG key ID: 6E1A4E79





More information about the kde-core-devel mailing list