我遇到了问题。我试着展示最近30天。我尝试用时间戳显示它。 1天= 82800 - 这是正确的吗?我的代码:
= a.input :country, as: :select, label:false, :wrapper => false, prompt: "Select country"
= a.input :city, label:false, :wrapper => false, input_html: {class: "gui-input", maxlength: 80, minlength: 2}, placeholder: "City"
输出:
2017-10-31 - 1507326468,
2017-10-31 - 1507409268,
2017-10-31 - 1507492068,
2017-10-31 - 1507574869,
2017-10-31 - 1507657669,
2017-10-31 - 1507740469,
2017-10-31 - 1507823270,
2017-10-31 - 1507906070,
2017-10-31 - 1507988870,
2017-10-31 - 1508071671,
2017-10-31 - 1508154471,
2017-10-31 - 1508237271,
2017-10-31 - 1508320072,
2017-10-31 - 1508402872,
2017-10-31 - 1508485672,
2017-10-31 - 1508568472,
2017-10-31 - 1508651273,
2017-10-31 - 1508734073,
2017-10-31 - 1508816873,
2017-10-31 - 1508899674,
2017-10-31 - 1508982474,
2017-10-31 - 1509065274,
2017-10-31 - 1509148075,
2017-10-31 - 1509230875,
2017-10-31 - 1509313675,
2017-10-31 - 1509396476,
2017-10-31 - 1509479276,
2017-11-30 - 1509562076,
2017-11-30 - 1509644876,
2017-11-30 - 1509727676
为什么它显示相同的日期?
答案 0 :(得分:0)