def export_url demander_url, action, token, date
u = demander_url + (demander_url[-1] == '/' ? '' : '/')
- u = URI.join(u, action + '.json?auth_token=' + token)
- u = URI.join(u, '&date=' + date) unless date.blank?
+ prm = '?auth_token=' + token
+ prm = prm + '&date=' + date.strftime("%Y%m%d") unless date.blank?
+ u = URI.join(u, action + '.json' + prm)
u.to_s
end