--- loncom/interface/lonhtmlcommon.pm 2024/10/21 14:16:11 1.415
+++ loncom/interface/lonhtmlcommon.pm 2025/02/18 03:42:04 1.418
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# a pile of common html routines
#
-# $Id: lonhtmlcommon.pm,v 1.415 2024/10/21 14:16:11 raeburn Exp $
+# $Id: lonhtmlcommon.pm,v 1.418 2025/02/18 03:42:04 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -542,7 +542,14 @@ sub date_setter {
my ($formname,$dname,$currentvalue,$special,$includeempty,$state,
$no_hh_mm_ss,$defhour,$defmin,$defsec,$nolink,$no_mm_ss,$no_ss) = @_;
my $now = time;
-
+ my %labels = &Apache::lonlocal::texthash(
+ day => 'day',
+ month => 'month',
+ year => 'year',
+ sec => 'seconds',
+ min => 'minutes',
+ hour => 'hours',
+ );
my $tzname;
my ($sec,$min,$hour,$mday,$month,$year) = ('', '', undef,''.''.'');
#other potentially useful values: wkday,yrday,is_daylight_savings
@@ -643,7 +650,7 @@ document.$formname.$dname\_year.value,
ENDJS
$result .= ' ';
- my $monthselector = qq{