Now compatible with India's CD/DVD
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Dmitry Isaenko 2022-09-25 16:05:25 +03:00
parent c721c30389
commit 08aa903cab
2 changed files with 5 additions and 5 deletions

View file

@ -6,7 +6,7 @@
<groupId>ru.redrise</groupId> <groupId>ru.redrise</groupId>
<artifactId>ISEE9660</artifactId> <artifactId>ISEE9660</artifactId>
<version>1.0</version> <version>1.1</version>
<url>https://github.com/developersu/${project.artifactId}/</url> <url>https://github.com/developersu/${project.artifactId}/</url>
<description> <description>

View file

@ -32,13 +32,13 @@ public class DateTime {
DateTime INSTANCE = new DateTime(); DateTime INSTANCE = new DateTime();
INSTANCE.rawDateTime = dateTimeBytes; INSTANCE.rawDateTime = dateTimeBytes;
int timeZone = dateTimeBytes[6]*15/60; float timeZone = dateTimeBytes[6]*15/60f;
String timeZoneString; String timeZoneString;
if (timeZone > 0) if (timeZone > 0)
timeZoneString = "+"+timeZone; timeZoneString = "+"+timeZone;
else else
timeZoneString = Integer.toString(timeZone); timeZoneString = Float.toString(timeZone);
INSTANCE.dateTime = String.format("%s-%s-%s %s:%s:%s:%s GMT%s", INSTANCE.dateTime = String.format("%s-%s-%s %s:%s:%s:%s GMT%s",
new String(dateTimeBytes, 0, 4, StandardCharsets.US_ASCII), new String(dateTimeBytes, 0, 4, StandardCharsets.US_ASCII),
@ -56,13 +56,13 @@ public class DateTime {
DateTime INSTANCE = new DateTime(); DateTime INSTANCE = new DateTime();
INSTANCE.rawDateTime = dateTimeBytes; INSTANCE.rawDateTime = dateTimeBytes;
int timeZone = dateTimeBytes[6]*15/60; float timeZone = dateTimeBytes[6]*15/60f;
String timeZoneString; String timeZoneString;
if (timeZone > 0) if (timeZone > 0)
timeZoneString = "+"+timeZone; timeZoneString = "+"+timeZone;
else else
timeZoneString = Integer.toString(timeZone); timeZoneString = Float.toString(timeZone);
INSTANCE.dateTime = String.format("%d-%02d-%02d %02d:%02d:%02d GMT%s", INSTANCE.dateTime = String.format("%d-%02d-%02d %02d:%02d:%02d GMT%s",
(1900+dateTimeBytes[0]), (1900+dateTimeBytes[0]),