Revision 0f13c96b
Von Thomas Heck vor etwa 12 Jahren hinzugefügt
SL/DB.pm | ||
---|---|---|
38 | 38 |
my %_dateformats = ( 'yy-mm-dd' => 'ISO', |
39 | 39 |
'yyyy-mm-dd' => 'ISO', |
40 | 40 |
'mm/dd/yy' => 'SQL, US', |
41 |
'mm-dd-yy' => 'POSTGRES, US', |
|
42 | 41 |
'dd/mm/yy' => 'SQL, EUROPEAN', |
43 |
'dd-mm-yy' => 'POSTGRES, EUROPEAN', |
|
44 | 42 |
'dd.mm.yy' => 'GERMAN' |
45 | 43 |
); |
46 | 44 |
|
SL/Form.pm | ||
---|---|---|
788 | 788 |
# default |
789 | 789 |
my %dateformats = ( |
790 | 790 |
"dd.mm.yy" => "%d.%m.%Y", |
791 |
"dd-mm-yy" => "%d-%m-%Y", |
|
792 | 791 |
"dd/mm/yy" => "%d/%m/%Y", |
793 | 792 |
"mm/dd/yy" => "%m/%d/%Y", |
794 |
"mm-dd-yy" => "%m-%d-%Y", |
|
795 | 793 |
"yyyy-mm-dd" => "%Y-%m-%d", |
796 | 794 |
); |
797 | 795 |
|
SL/User.pm | ||
---|---|---|
199 | 199 |
'Pg' => { 'yy-mm-dd' => 'set DateStyle to \'ISO\'', |
200 | 200 |
'yyyy-mm-dd' => 'set DateStyle to \'ISO\'', |
201 | 201 |
'mm/dd/yy' => 'set DateStyle to \'SQL, US\'', |
202 |
'mm-dd-yy' => 'set DateStyle to \'POSTGRES, US\'', |
|
203 | 202 |
'dd/mm/yy' => 'set DateStyle to \'SQL, EUROPEAN\'', |
204 |
'dd-mm-yy' => 'set DateStyle to \'POSTGRES, EUROPEAN\'', |
|
205 | 203 |
'dd.mm.yy' => 'set DateStyle to \'GERMAN\'' |
206 | 204 |
}, |
207 | 205 |
'Oracle' => { |
208 | 206 |
'yy-mm-dd' => 'ALTER SESSION SET NLS_DATE_FORMAT = \'YY-MM-DD\'', |
209 | 207 |
'yyyy-mm-dd' => 'ALTER SESSION SET NLS_DATE_FORMAT = \'YYYY-MM-DD\'', |
210 | 208 |
'mm/dd/yy' => 'ALTER SESSION SET NLS_DATE_FORMAT = \'MM/DD/YY\'', |
211 |
'mm-dd-yy' => 'ALTER SESSION SET NLS_DATE_FORMAT = \'MM-DD-YY\'', |
|
212 | 209 |
'dd/mm/yy' => 'ALTER SESSION SET NLS_DATE_FORMAT = \'DD/MM/YY\'', |
213 |
'dd-mm-yy' => 'ALTER SESSION SET NLS_DATE_FORMAT = \'DD-MM-YY\'', |
|
214 | 210 |
'dd.mm.yy' => 'ALTER SESSION SET NLS_DATE_FORMAT = \'DD.MM.YY\'', |
215 | 211 |
}); |
216 | 212 |
|
bin/mozilla/admin.pl | ||
---|---|---|
73 | 73 |
our $locale; |
74 | 74 |
our $auth; |
75 | 75 |
|
76 |
my @valid_dateformats = qw(mm-dd-yy mm/dd/yy dd-mm-yy dd/mm/yy dd.mm.yy yyyy-mm-dd);
|
|
76 |
my @valid_dateformats = qw(mm/dd/yy dd/mm/yy dd.mm.yy yyyy-mm-dd);
|
|
77 | 77 |
my @valid_numberformats = ('1,000.00', '1000.00', '1.000,00', '1000,00'); |
78 | 78 |
my @all_stylesheets = qw(lx-office-erp.css Win2000.css Mobile.css kivitendo.css); |
79 | 79 |
my @all_menustyles = ( |
bin/mozilla/am.pl | ||
---|---|---|
742 | 742 |
|
743 | 743 |
print $::form->parse_html_template('am/language_header', { |
744 | 744 |
numberformats => [ '1,000.00', '1000.00', '1.000,00', '1000,00' ], |
745 |
dateformats => [ qw(mm-dd-yy mm/dd/yy dd-mm-yy dd/mm/yy dd.mm.yy yyyy-mm-dd) ],
|
|
745 |
dateformats => [ qw(mm/dd/yy dd/mm/yy dd.mm.yy yyyy-mm-dd) ],
|
|
746 | 746 |
}); |
747 | 747 |
|
748 | 748 |
$::lxdebug->leave_sub; |
... | ... | |
1006 | 1006 |
my %myconfig = %main::myconfig; |
1007 | 1007 |
my $locale = $main::locale; |
1008 | 1008 |
|
1009 |
_build_cfg_options('dateformat', qw(mm-dd-yy mm/dd/yy dd-mm-yy dd/mm/yy dd.mm.yy yyyy-mm-dd));
|
|
1009 |
_build_cfg_options('dateformat', qw(mm/dd/yy dd/mm/yy dd.mm.yy yyyy-mm-dd));
|
|
1010 | 1010 |
_build_cfg_options('numberformat', ('1,000.00', '1000.00', '1.000,00', '1000,00')); |
1011 | 1011 |
|
1012 | 1012 |
my @formats = (); |
Auch abrufbar als: Unified diff
Datumsformate "dd-mm-yy" und "mm-dd-yy" entfernt.
fixt #1871