Skip to content

Commit

Permalink
fix time formatting for RFC 3164
Browse files Browse the repository at this point in the history
  • Loading branch information
Geal committed Aug 24, 2015
1 parent c287654 commit 649b441
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ impl Logger {
pub fn format_3164(&self, severity:Severity, message: String) -> String {
let f = format!("<{}>{} {} {}[{}]: {}",
self.encode_priority(severity, self.facility),
time::now_utc().rfc3339(),
time::now().strftime("%b %d %T").unwrap(),
self.hostname, self.process, self.pid, message);
return f;
}
Expand Down

0 comments on commit 649b441

Please sign in to comment.