Commit f7d41296 authored by David Stancu's avatar David Stancu
Browse files

Merge branch 'a2-4am-master'

parents b5d413c8 6600cd95
......@@ -37,7 +37,10 @@ Any and all contributions are welcome. Included is also a `cadius.pro` file you
## Changelog
#### 1.3
#### 1.3.1
- Resolves timestamp bugs in [#10](https://github.com/mach-kernel/cadius/issues/10). Thanks, @a2-4am!
#### 1.3.0
- Adds ability to specify a file's `type` and `auxtype` via the filename, resolving [#4](https://github.com/mach-kernel/cadius/issues/4). A big thank you to @JohnMBrooks for testing this PR!
- `REPLACEFILE` command, `DELETEFILE` support for type/auxtype suffix.
......
......@@ -163,9 +163,9 @@ void os_GetFileCreationModificationDate(char *path, struct prodos_file *file) {
struct tm *time = localtime(&filestat.st_mtime);
if (time == NULL) return;
file->file_creation_date = BuildProdosDate(time->tm_mday, time->tm_mon, time->tm_year);
file->file_creation_date = BuildProdosDate(time->tm_mday, time->tm_mon + 1, time->tm_year + 1900);
file->file_creation_time = BuildProdosTime(time->tm_min, time->tm_hour);
file->file_modification_date = BuildProdosDate(time->tm_mday, time->tm_mon, time->tm_year);
file->file_modification_date = BuildProdosDate(time->tm_mday, time->tm_mon + 1, time->tm_year + 1900);
file->file_modification_time = BuildProdosTime(time->tm_min, time->tm_hour);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment