forked from github/kensanata.oddmuse
(DoNew): Use $Now instead of $time.
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
# 59 Temple Place, Suite 330
|
||||
# Boston, MA 02111-1307 USA
|
||||
|
||||
$ModulesDescription .= '<p>$Id: today.pl,v 1.2 2006/02/22 22:27:27 as Exp $</p>';
|
||||
$ModulesDescription .= '<p>$Id: today.pl,v 1.3 2006/02/22 22:28:42 as Exp $</p>';
|
||||
|
||||
# New Action
|
||||
|
||||
@@ -24,7 +24,7 @@ $Action{new} = \&DoNew;
|
||||
|
||||
sub DoNew {
|
||||
my $id = shift;
|
||||
my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday) = gmtime($time);
|
||||
my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday) = gmtime($Now);
|
||||
$today = sprintf("%d-%02d-%02d", $year + 1900, $mon + 1, $mday);
|
||||
$today .= "_" . $id if $id;
|
||||
return DoEdit($today);
|
||||
|
||||
Reference in New Issue
Block a user