Fix condition for updating the current date buffer (#230)

This commit is contained in:
Hiroaki Nakamura
2018-03-15 09:29:55 -07:00
committed by Carl Lerche
parent 923a80e098
commit d1046db735
+1 -1
View File
@@ -274,7 +274,7 @@ mod date {
LAST.with(|cache| {
let mut cache = cache.borrow_mut();
let now = time::get_time();
if now > cache.next_update {
if now >= cache.next_update {
cache.update(now);
}
f.write_str(cache.buffer())