diff options
author | Nikias Bassen | 2020-12-10 15:58:36 +0100 |
---|---|---|
committer | Nikias Bassen | 2020-12-10 15:58:36 +0100 |
commit | 8c5ab80581e00c13cf852f378767a25d5df903b2 (patch) | |
tree | d6867f5f62aac2d189c32a1bb0db85ffd7421532 /common | |
parent | e2f133364b504ad60af64ef7b16625688587d9b2 (diff) | |
download | libimobiledevice-8c5ab80581e00c13cf852f378767a25d5df903b2.tar.gz libimobiledevice-8c5ab80581e00c13cf852f378767a25d5df903b2.tar.bz2 |
ideviceprovision: Fix date output by adding MAC_EPOCH
Diffstat (limited to 'common')
-rw-r--r-- | common/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/utils.c b/common/utils.c index 7f66ec2..58dac02 100644 --- a/common/utils.c +++ b/common/utils.c @@ -472,7 +472,7 @@ static void plist_node_print_to_stream(plist_t node, int* indent_level, FILE* st case PLIST_DATE: plist_get_date_val(node, (int32_t*)&tv.tv_sec, (int32_t*)&tv.tv_usec); { - time_t ti = (time_t)tv.tv_sec; + time_t ti = (time_t)tv.tv_sec + MAC_EPOCH; struct tm *btime = localtime(&ti); if (btime) { s = (char*)malloc(24); |