KCalUtils: new method tzUTCOffsetStr
ClosedPublic

Authored by winterz on Dec 9 2017, 6:38 PM.

Details

Summary

This patch adds a new static method for pretty formatting a timezone's UTC offset.
We had an older version of this in eventviews, but I want to move it here for wider use.

Test Plan

I'm using it in eventviews ok.

Please double-check the "@since" value.

Diff Detail

Repository
R173 KCalendar Utils
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
winterz created this revision.Dec 9 2017, 6:38 PM
Restricted Application added a project: KDE PIM. · View Herald TranscriptDec 9 2017, 6:38 PM
Restricted Application added a subscriber: KDE PIM. · View Herald Transcript
winterz requested review of this revision.Dec 9 2017, 6:38 PM
winterz updated this revision to Diff 23722.Dec 10 2017, 1:52 PM

improved. more unittests

mlaurent accepted this revision.Dec 11 2017, 7:14 AM

fix two const + commit please
thanks

src/stringify.cpp
284

const
same for other line

This revision is now accepted and ready to land.Dec 11 2017, 7:14 AM
This revision was automatically updated to reflect the committed changes.