summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2020-12-10 15:58:36 +0100
committerGravatar Nikias Bassen2020-12-10 15:58:36 +0100
commit8c5ab80581e00c13cf852f378767a25d5df903b2 (patch)
treed6867f5f62aac2d189c32a1bb0db85ffd7421532 /common
parente2f133364b504ad60af64ef7b16625688587d9b2 (diff)
downloadlibimobiledevice-8c5ab80581e00c13cf852f378767a25d5df903b2.tar.gz
libimobiledevice-8c5ab80581e00c13cf852f378767a25d5df903b2.tar.bz2
ideviceprovision: Fix date output by adding MAC_EPOCH
Diffstat (limited to 'common')
-rw-r--r--common/utils.c2
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);