move the currentDateTime to the constructor

  It was crashing on Qt5 because the currentDateTime uses
  QLocal::system Q_GLOBAL_STATIC which could be already deleted.

Change-Id: I10ff1b02a72baccbe0acd2d0f54e187653abaa04
Reviewed-by: Niels Weber <niels.weber@digia.com>