add century datetime bug
This commit is contained in:
parent
e6b001f416
commit
9ad83acd08
@ -178,7 +178,7 @@ $(document).ready(function() {
|
||||
let csrf_token = $('input[name=csrfmiddlewaretoken]').val();
|
||||
let value = $(this).attr('value');
|
||||
let year = Number($(this).parent('tr').attr('name'));
|
||||
// TODO fix this before the end of 2098
|
||||
// TODO fix this before the end of 2098
|
||||
year += (year == 99) ? 1900 : 2000;
|
||||
let country = $(this).parents('table').attr('name');
|
||||
let stamp = $(this).parent('tr').attr('stamp');
|
||||
|
@ -135,7 +135,7 @@ def show_coin(country, year, stamp, value):
|
||||
@param stamp: stamp_id
|
||||
@param value: int e [1,2,5,10,20,50,100,200,201,202,203]
|
||||
'''
|
||||
# TODO fix this before the end of 2098
|
||||
# TODO fix this before the end of 2098
|
||||
year = int(year)
|
||||
if year == 99:
|
||||
year += 1900
|
||||
|
Loading…
x
Reference in New Issue
Block a user