Skip to content

Commit

Permalink
examples/nph-clock.cgi is now more portable, by calling localtime() r…
Browse files Browse the repository at this point in the history
…ather than `/bin/date`,

     thanks to Guenter Knauf. (RT#27456).
  • Loading branch information
markstos committed Aug 2, 2009
1 parent 35e6234 commit b1a375d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Changes
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/nph-clock.cgi
Expand Up @@ -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'),
Expand Down

0 comments on commit b1a375d

Please sign in to comment.