diff options
Diffstat (limited to 'src/modules/time.rs')
-rw-r--r-- | src/modules/time.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/time.rs b/src/modules/time.rs index 0450e86fe..61a68c724 100644 --- a/src/modules/time.rs +++ b/src/modules/time.rs @@ -41,8 +41,8 @@ pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> { /// Format a given time into the given string. This function should be referentially /// transparent, which makes it easy to test (unlike anything involving the actual time) -fn format_time(time_format: &str, localtime: DateTime<Local>) -> String { - localtime.format(time_format).to_string() +fn format_time(time_format: &str, local_time: DateTime<Local>) -> String { + local_time.format(time_format).to_string() } /* Because we cannot make acceptance tests for the time module, these unit |