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 csrf_token = $('input[name=csrfmiddlewaretoken]').val();
|
||||||
let value = $(this).attr('value');
|
let value = $(this).attr('value');
|
||||||
let year = Number($(this).parent('tr').attr('name'));
|
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;
|
year += (year == 99) ? 1900 : 2000;
|
||||||
let country = $(this).parents('table').attr('name');
|
let country = $(this).parents('table').attr('name');
|
||||||
let stamp = $(this).parent('tr').attr('stamp');
|
let stamp = $(this).parent('tr').attr('stamp');
|
||||||
|
@ -135,7 +135,7 @@ def show_coin(country, year, stamp, value):
|
|||||||
@param stamp: stamp_id
|
@param stamp: stamp_id
|
||||||
@param value: int e [1,2,5,10,20,50,100,200,201,202,203]
|
@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)
|
year = int(year)
|
||||||
if year == 99:
|
if year == 99:
|
||||||
year += 1900
|
year += 1900
|
||||||
|
Loading…
x
Reference in New Issue
Block a user