Fix for tests. Phew! Thanks unit tests!

pull/10616/head
Hunter Trujillo 2017-06-30 17:52:50 -06:00
parent b99ad9122e
commit 0ca0be2481
1 changed files with 2 additions and 2 deletions

View File

@ -58,11 +58,11 @@ function _buildFields(fieldFuncs) {
function _buildWhereClause({lower, upper, tags, areTagsAccepted}) {
const timeClauses = []
if (lower && lower.includes('Z')) {
if (lower && lower.includes('Z') && !lower.includes('\'')) {
lower = `'${lower}'`
}
if (upper && upper.includes('Z')) {
if (upper && upper.includes('Z') && !upper.includes('\'')) {
upper = `'${upper}'`
}