From 3891595250d14f5cf8bab6e97a9913c3a8870ab4 Mon Sep 17 00:00:00 2001 From: Richard Piazza Date: Wed, 4 Oct 2017 10:27:06 -0400 Subject: [PATCH] Use t prefix for timestamp constant --- stix2/patterns.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stix2/patterns.py b/stix2/patterns.py index 7858146..03b7657 100644 --- a/stix2/patterns.py +++ b/stix2/patterns.py @@ -24,7 +24,7 @@ class TimestampConstant(_Constant): self.value = value def __str__(self): - return "'%s'" % escape_quotes_and_backslashes(self.value) + return "t'%s'" % escape_quotes_and_backslashes(self.value) class IntegerConstant(_Constant):