diff options
Diffstat (limited to 'bins/date/src/main.rs')
| -rw-r--r-- | bins/date/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bins/date/src/main.rs b/bins/date/src/main.rs index 880833e..68e70d3 100644 --- a/bins/date/src/main.rs +++ b/bins/date/src/main.rs | |||
| @@ -22,7 +22,7 @@ pub extern "C" fn efi_main(exports: &'static rsapi::Exports, _argc: usize, _argv | |||
| 22 | let mut buf = [0u8; 19]; | 22 | let mut buf = [0u8; 19]; |
| 23 | let y = t.year; | 23 | let y = t.year; |
| 24 | buf[0] = b'0' + (y / 1000) as u8; buf[1] = b'0' + (y / 100) as u8 % 10; | 24 | buf[0] = b'0' + (y / 1000) as u8; buf[1] = b'0' + (y / 100) as u8 % 10; |
| 25 | buf[2] = b'0' + (y / 10) as u8 % 10; buf[3] = b'0' + y as u8 % 10; | 25 | buf[2] = b'0' + (y / 10) as u8 % 10; buf[3] = b'0' + (y % 10) as u8; |
| 26 | buf[4] = b'-'; | 26 | buf[4] = b'-'; |
| 27 | let m = dig(t.month); buf[5] = m[0]; buf[6] = m[1]; | 27 | let m = dig(t.month); buf[5] = m[0]; buf[6] = m[1]; |
| 28 | buf[7] = b'-'; | 28 | buf[7] = b'-'; |
