diff options
author | jake <jake@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-02-15 07:14:22 +0000 |
---|---|---|
committer | jake <jake@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-02-15 07:14:22 +0000 |
commit | f8651b91ddba8ce85fbba003283acdb3a01f2cda (patch) | |
tree | 2fcf53417f7cc69f3c5cf5e4d794c264d6c41bfe /epan/to_str.c | |
parent | 7d870fa406efec657b5952b382dc934774feac37 (diff) |
From Matthew Parris:
Display "Day of Year" for January 1 as 1, not 0.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35949 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/to_str.c')
-rw-r--r-- | epan/to_str.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/to_str.c b/epan/to_str.c index d4d4510fd3..98918911b2 100644 --- a/epan/to_str.c +++ b/epan/to_str.c @@ -560,7 +560,7 @@ abs_time_to_str(const nstime_t *abs_time, const absolute_time_display_e fmt, if (show_zone) { buf = ep_strdup_printf("%04d/%03d:%02d:%02d:%02d.%09ld %s", tmp->tm_year + 1900, - tmp->tm_yday, + tmp->tm_yday + 1, tmp->tm_hour, tmp->tm_min, tmp->tm_sec, @@ -569,7 +569,7 @@ abs_time_to_str(const nstime_t *abs_time, const absolute_time_display_e fmt, } else { buf = ep_strdup_printf("%04d/%03d:%02d:%02d:%02d.%09ld", tmp->tm_year + 1900, - tmp->tm_yday, + tmp->tm_yday + 1, tmp->tm_hour, tmp->tm_min, tmp->tm_sec, @@ -644,7 +644,7 @@ abs_time_secs_to_str(const time_t abs_time, const absolute_time_display_e fmt, if (show_zone) { buf = ep_strdup_printf("%04d/%03d:%02d:%02d:%02d %s", tmp->tm_year + 1900, - tmp->tm_yday, + tmp->tm_yday + 1, tmp->tm_hour, tmp->tm_min, tmp->tm_sec, @@ -652,7 +652,7 @@ abs_time_secs_to_str(const time_t abs_time, const absolute_time_display_e fmt, } else { buf = ep_strdup_printf("%04d/%03d:%02d:%02d:%02d", tmp->tm_year + 1900, - tmp->tm_yday, + tmp->tm_yday + 1, tmp->tm_hour, tmp->tm_min, tmp->tm_sec); |