Skip to content

Commit 1c0935b

Browse files
Merge pull request #625 from troyready/fix_cloudwatch_timestamp_utc
Ensure the timestamp passed to boto is UTC.
2 parents b6f5764 + a87022e commit 1c0935b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diamond/handler/cloudwatch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ def send_metrics_to_cloudwatch(self, rule, metric, dimensions):
228228
Send metrics to CloudWatch for the given dimensions
229229
"""
230230

231-
timestamp = datetime.datetime.fromtimestamp(metric.timestamp)
231+
timestamp = datetime.datetime.utcfromtimestamp(metric.timestamp)
232232

233233
self.log.debug(
234234
"CloudWatch: Attempting to publish metric: %s to %s "

0 commit comments

Comments
 (0)