Review Request 128655: VCardTool: parseDateTime and createDateTime refactoring

Benni Hill benni at mytum.de
Sat Aug 20 17:47:02 BST 2016


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/128655/
-----------------------------------------------------------

(Updated Aug. 20, 2016, 4:46 p.m.)


Status
------

This change has been marked as submitted.


Review request for KDEPIM-Libraries and Laurent Montel.


Changes
-------

Submitted with commit dc229047663cb9e7568159c4a4a9256db78747b4 by Benjamin Löwe to branch master.


Repository: kcontacts


Description
-------

- split createDateTime into createDate and createTime so they can be used separately to either export the date or the time. (createDateTime always exported the time because dateTime.time().isValid() returns true when dateTime has a valid date.)
- parseDateTime now also recognizes offsets from UTC (e.g. +0100 or -12:30)
- createDateTime can now write offsets from UTC
- when parseDateTime can't parse the time *timeValid is set to false (I would like to use this in my next patch to prevent that the birthday field is parsed with a time when no time is present)
- adjusted customidentifiertest and importexportvcardtest because they failed now
- added some tests for createDateTime and parseDateTime (I had to make them public therefore)


Diffs
-----

  autotests/CMakeLists.txt 9d8b4c0 
  autotests/customidentifiertest.cpp f96defd 
  autotests/datetimetest.h PRE-CREATION 
  autotests/datetimetest.cpp PRE-CREATION 
  autotests/importexportvcardtest.cpp c425b44 
  src/vcardtool.h 2558c94 
  src/vcardtool.cpp e3684ba 

Diff: https://git.reviewboard.kde.org/r/128655/diff/


Testing
-------


Thanks,

Benni Hill

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20160820/765defa7/attachment.html>


More information about the kde-pim mailing list