support busybox date.

Busybox date doesn't understand weekdays in -d input,
so strip them beforehand.
This commit is contained in:
Vladimir Serbinenko 2017-01-23 14:31:36 +03:00
parent 37865c2c4a
commit b43b8cacc8
2 changed files with 3 additions and 3 deletions

View file

@ -9,7 +9,7 @@ if [ "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" = sparc64-ieee1275 ];
fi
pdt="$(date -u +%s)"
dt=`echo date | @builddir@/grub-shell`
dt=`echo date | @builddir@/grub-shell | sed 's, [A-Z][a-z]*$,,'`
dtg="$(date -u -d "$dt" +%s)"
ndt="$(date -u +%s)"