https://www.growthbook.io/ logo
t

thankful-camera-8271

01/17/2023, 1:58 PM
Hey guys, we need your support for an experiment we are running. From what our engineers see it converts the string we put in the targeting condition to an actual Date instance, and comparing that to a string doesn't work
f

fresh-football-47124

01/17/2023, 2:03 PM
@future-teacher-7046 do you know?
f

future-teacher-7046

01/17/2023, 2:05 PM
Is this a feature you created in the GrowthBook UI?
t

thankful-camera-8271

01/17/2023, 2:16 PM
Yes
f

future-teacher-7046

01/17/2023, 2:17 PM
Hmm, do you have a screenshot of that feature rule in GrowthBook? The value you enter in the UI should always be treated as a string, not a date instance, so maybe there's a bug there.
t

thankful-camera-8271

01/17/2023, 2:18 PM
You mean this?
f

future-teacher-7046

01/17/2023, 2:26 PM
I'm not able to reproduce the bug. When I add a condition like that in the UI and then inspect it within the javascript SDK, I see it as a string
What exactly are you console.logging in your first screenshot?
t

thankful-camera-8271

01/17/2023, 2:37 PM
We're logging (part of)
_growthbook.getFeatures()
. We tried re-adding the condition and it's still happening. Interestingly, in the chrome extension it's correctly showing as a string
f

future-teacher-7046

01/17/2023, 2:47 PM
There's nothing in the GrowthBook SDK that would do that. Is it possible you have some other script that's intercepting network requests and parsing strings that look like dates?
t

thankful-camera-8271

01/17/2023, 4:36 PM
Yup that's seems to be it. Thanks a lot for the fast help! Outstanding support 🙏🏼