From Matthew Parris:
authorjake <jake@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 15 Feb 2011 07:14:22 +0000 (07:14 +0000)
committerjake <jake@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 15 Feb 2011 07:14:22 +0000 (07:14 +0000)
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

epan/to_str.c

index d4d4510..9891891 100644 (file)
@@ -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);