Skip to content

Commit 6697cd9

Browse files
committed
Issue #73. Timezone is not considered when creating a G*-Type instance
from date (as it is probably the most reasonable default).
1 parent c08d3ed commit 6697cd9

File tree

5 files changed

+0
-5
lines changed

5 files changed

+0
-5
lines changed

scripts/src/main/javascript/org/hisrc/jsonix/Jsonix/Schema/XSD/GDay.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ Jsonix.Schema.XSD.GDay = Jsonix.Class(Jsonix.Schema.XSD.Calendar, {
2323

2424
if (value instanceof Date) {
2525
day = value.getDate();
26-
timezone = value.getTimezoneOffset() * -1;
2726
} else {
2827
Jsonix.Util.Ensure.ensureInteger(value.day);
2928
day = value.day;

scripts/src/main/javascript/org/hisrc/jsonix/Jsonix/Schema/XSD/GMonth.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ Jsonix.Schema.XSD.GMonth = Jsonix.Class(Jsonix.Schema.XSD.Calendar, {
2323

2424
if (value instanceof Date) {
2525
month = value.getMonth() + 1;
26-
timezone = value.getTimezoneOffset() * -1;
2726
} else {
2827
Jsonix.Util.Ensure.ensureInteger(value.month);
2928
month = value.month;

scripts/src/main/javascript/org/hisrc/jsonix/Jsonix/Schema/XSD/GMonthDay.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ Jsonix.Schema.XSD.GMonthDay = Jsonix.Class(Jsonix.Schema.XSD.Calendar, {
2727
if (value instanceof Date) {
2828
month = value.getMonth() + 1;
2929
day = value.getDate();
30-
timezone = value.getTimezoneOffset() * -1;
3130
} else {
3231
Jsonix.Util.Ensure.ensureInteger(value.month);
3332
Jsonix.Util.Ensure.ensureInteger(value.day);

scripts/src/main/javascript/org/hisrc/jsonix/Jsonix/Schema/XSD/GYear.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ Jsonix.Schema.XSD.GYear = Jsonix.Class(Jsonix.Schema.XSD.Calendar, {
2323

2424
if (value instanceof Date) {
2525
year = value.getFullYear();
26-
timezone = value.getTimezoneOffset() * -1;
2726
} else {
2827
Jsonix.Util.Ensure.ensureInteger(value.year);
2928
year = value.year;

scripts/src/main/javascript/org/hisrc/jsonix/Jsonix/Schema/XSD/GYearMonth.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ Jsonix.Schema.XSD.GYearMonth = Jsonix.Class(Jsonix.Schema.XSD.Calendar, {
2626
if (value instanceof Date) {
2727
year = value.getFullYear();
2828
month = value.getMonth() + 1;
29-
timezone = value.getTimezoneOffset() * -1;
3029
} else {
3130
Jsonix.Util.Ensure.ensureInteger(value.year);
3231
year = value.year;

0 commit comments

Comments
 (0)