Skip to content

Commit ec49a0a

Browse files
author
kx1t
committed
minor update to date format
1 parent b12f823 commit ec49a0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rootfs/usr/share/plane-alert/plane-alert.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ sed -i "s|##NAME##|$NAME|g" "$TMPDIR"/plalert-index.tmp
831831
sed -i "s|##ADSBLINK##|$ADSBLINK|g" "$TMPDIR"/plalert-index.tmp
832832
sed -i "s|##LASTUPDATE##|$LASTUPDATE|g" "$TMPDIR"/plalert-index.tmp
833833
sed -i "s|##ALERTLIST##|$ALERTLIST|g" "$TMPDIR"/plalert-index.tmp
834-
sed -i "s|##ALERTLISTUPDATE##|$(stat -c "%y" /usr/share/planefence/persist/.internal/plane-alert-db.txt | sed 's/\.[0-9]*//')|g" "$TMPDIR"/plalert-index.tmp
834+
sed -i "s|##ALERTLISTUPDATE##|$(date -d "$(stat -c "%y" /usr/share/planefence/persist/.internal/plane-alert-db.txt)")|g" "$TMPDIR"/plalert-index.tmp
835835
sed -i "s|##CONCATLIST##|$CONCATLIST|g" "$TMPDIR"/plalert-index.tmp
836836
sed -i "s|##HISTTIME##|$HISTTIME|g" "$TMPDIR"/plalert-index.tmp
837837
sed -i "s|##BUILD##|$([[ -f /usr/share/planefence/branch ]] && cat /usr/share/planefence/branch || cat /root/.buildtime)|g" "$TMPDIR"/plalert-index.tmp

0 commit comments

Comments
 (0)