Merge pull request #81 from rhysd/fix-32bit

Fix integer length error on 32bit environment
This commit is contained in:
Ben S 2015-10-02 00:54:37 +01:00
commit 9b3b00316f

View File

@ -582,7 +582,7 @@ impl<U> Table<U> where U: Users {
}
fn render_time(&self, timestamp: f::Time) -> Cell {
let date = self.tz.at(LocalDateTime::at(timestamp.0));
let date = self.tz.at(LocalDateTime::at(timestamp.0 as i64));
let format = if date.year() == self.current_year {
DateFormat::parse("{2>:D} {:M} {2>:h}:{02>:m}").unwrap()