diff --git a/Changes b/Changes index 1e9d0f58..0447b075 100644 --- a/Changes +++ b/Changes @@ -13,6 +13,8 @@ [DOCUMENTATION] 1. Several typos were fixed, Thanks to ambs. (RT#41105) 2. A typo related to the nosticky pragma was fixed, thanks to Britton Kerin. (RT#43220) + 3. examples/nph-clock.cgi is now more portable, by calling localtime() rather than `/bin/date`, + thanks to Guenter Knauf. (RT#27456). [INTERNALS] 1. New t/unescapeHTML.t test script has been added. It includes a TODO test for a pre-existing diff --git a/examples/nph-clock.cgi b/examples/nph-clock.cgi index 55a2fbe5..f34fde27 100755 --- a/examples/nph-clock.cgi +++ b/examples/nph-clock.cgi @@ -5,7 +5,7 @@ use CGI::Push qw(:standard :html3); do_push(-next_page=>\&draw_time,-delay=>1); sub draw_time { - my $time = `/bin/date`; + my $time = localtime(); return start_html('Tick Tock'), div({-align=>CENTER}, h1('Virtual Clock'),