Use strict equalities in web/document_properties.js
This commit is contained in:
parent
ea85a2f7a7
commit
7ca6f0839f
@ -171,10 +171,10 @@ var DocumentProperties = {
|
|||||||
|
|
||||||
// As per spec, utRel = 'Z' means equal to universal time.
|
// As per spec, utRel = 'Z' means equal to universal time.
|
||||||
// The other cases ('-' and '+') have to be handled here.
|
// The other cases ('-' and '+') have to be handled here.
|
||||||
if (utRel == '-') {
|
if (utRel === '-') {
|
||||||
hours += offsetHours;
|
hours += offsetHours;
|
||||||
minutes += offsetMinutes;
|
minutes += offsetMinutes;
|
||||||
} else if (utRel == '+') {
|
} else if (utRel === '+') {
|
||||||
hours -= offsetHours;
|
hours -= offsetHours;
|
||||||
minutes += offsetMinutes;
|
minutes += offsetMinutes;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user