Now compatible with India's CD/DVD
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
c721c30389
commit
08aa903cab
2 changed files with 5 additions and 5 deletions
2
pom.xml
2
pom.xml
|
@ -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>
|
||||||
|
|
|
@ -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]),
|
||||||
|
|
Loading…
Reference in a new issue