portable: regress: improve date wrapper
commite33b5f976eb631d64485474683cea67a7cf6f712
authorThomas Adam <thomas@xteddy.org>
Sun, 5 Mar 2023 23:45:37 +0000 (5 23:45 +0000)
committerThomas Adam <thomas@xteddy.org>
Sun, 5 Mar 2023 23:45:37 +0000 (5 23:45 +0000)
tree32682439f95e1f9a5d800851f02b2ac2e01a62ac
parent8fedfb3cc9c6c88a5105f3926595d3807da6922d
portable: regress: improve date wrapper

When looking for a suitable date wrapper, don't use the platform name,
and rather use date(1)'s own parsing to choose BSD date, or gdate (GNU).

Additionally, only declare the date() wrapper once.

From Christian "naddy" Weisgerber
regress/cmdline/common.sh