Improved code for setting the date.
Improved code for setting the date.

In the old situation there was 1 try to set the date and if it failed,
most files had 1970-01-01 as date. Not ideal, but not fatal either.
But when using GnuPG the date becomes more important, so now there are
several tries to set the date correctly.

Zspark23/raspbian-ua-netinst,malsony/raspbian-ua-netinst,cybercircuits/raspbian-ua-netinst,Zspark23/raspbian-ua-netinst-1,Zeerix/raspbian-ua-netinst,FooDeas/raspberrypi-ua-netinst,racing-tech/rrp-raspi-installer,bbinet/raspbian-ua-netinst,kolargol/raspbian-ua-netinst,matt2005/raspbian-ua-netinst,Zspark23/raspbian-ua-netinst-1,firepick/FireHawk,beylsp/rpi-installer,racing-tech/rrp-raspi-installer,Zspark23/raspbian-ua-netinst-1,beylsp/rpi-installer,dicer/raspbian-ua-netinst,daytonpid/FireHawk,jturner314/raspbian-ua-netinst,yodaaut/raspbian-ua-netinst