Since multiply two int numbers result is an int and overflow. Change line to this :
Qt Code:
  1. QDateTime somedate=QDateTime::fromMSecsSinceEpoch((qint64)1000*1422021168);
To copy to clipboard, switch view to plain text mode