I share with you a php script to set the correct date and time for the pineapple. It acts as a ntp client but without installing one such as ntpclient, etc.
It gets UTC time, so you will have to change the following parameter in the code:
// time adjustment $time_adjustment = 7200;Download
EDIT
Another fix is proposed by Prox here
in /etc/config/system add the lines:
config 'timeserver'
list 'server' '0.openwrt.pool.ntp.org'
list 'server' '1.openwrt.pool.ntp.org'
list 'server' '2.openwrt.pool.ntp.org'
list 'server' '3.openwrt.pool.ntp.org'
You may also need/want to change line 2 to your local timezone.
option 'timezone' 'UTC'
(Note: timezones are listed here)
Add the command 'date -k' to /etc/rc.local
Info: wiki.openwrt.org/doc/uci/system
Edited by Whistle Master, 27 April 2012 - 12:34 PM.















