year's value has higher priority than YEAR in YEAR/MONTH/DAY

This commit is contained in:
EricTYL 2019-10-18 14:16:09 +08:00
parent de2da3ee03
commit d618480b28
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ def sync_conference_papers(query_result, user)
wc.period_start_date = nil
else
wc.period_start_date = temp_date
wc.year = temp_date.year
wc.year = temp_date.year if wc.year.nil?
end
when '20101012151318602' # 會議結束日期
wc.period_end_date = data['data'].first['v']