Skip to content

Commit 7f011fa

Browse files
authored
When creating a UDFTimestamp object, tm_month was copied into (#117)
both the month and the day field. This resulted in bogus timestamps in the final iso.
1 parent c7db248 commit 7f011fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pycdlib/udf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,7 @@ def new(self, date_seconds):
11151115
self.timetype = 1
11161116
self.year = local.tm_year
11171117
self.month = local.tm_mon
1118-
self.day = local.tm_mon
1118+
self.day = local.tm_mday
11191119
self.hour = local.tm_hour
11201120
self.minute = local.tm_min
11211121
self.second = local.tm_sec

0 commit comments

Comments
 (0)