diff options
author | Jaap Keuter <jaap.keuter@xs4all.nl> | 2011-02-15 07:14:22 +0000 |
---|---|---|
committer | Jaap Keuter <jaap.keuter@xs4all.nl> | 2011-02-15 07:14:22 +0000 |
commit | 1be49d98a524f4fe92aec06e0c0acd4101310672 (patch) | |
tree | 2fcf53417f7cc69f3c5cf5e4d794c264d6c41bfe /epan/to_str.c | |
parent | bc1832599b5c91ea11922b0a9ba77661188de096 (diff) |
From Matthew Parris:
Display "Day of Year" for January 1 as 1, not 0.
svn path=/trunk/; revision=35949
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); |