aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/portable_date.sh
Commit message (Collapse)AuthorAgeFilesLines
* scripts: fix GNU data invocationJo-Philipp Wich2016-02-011-1/+1
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48594 3c298f89-4303-0410-b956-a3cf2f4a3e73
* scripts/portable_date.sh: fix parsing of date strings on non-GNU systemsFelix Fietkau2016-02-011-2/+2
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48592 3c298f89-4303-0410-b956-a3cf2f4a3e73
* add scripts/portable_date: wrapper around date for bsd/linuxFelix Fietkau2016-01-311-0/+11
date -r $unix_timestamp on bsd is equal to date -d @$unix_timestamp on linux. To support reproducible builds and not loosing every timestamp it's required to convert a unix timestamp into human readable timestamp ./scripts/portable_date $unix_timstamp +%T Signed-off-by: Alexander Couzens <lynxis@fe80.eu> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48583 3c298f89-4303-0410-b956-a3cf2f4a3e73