---
title: "How to add a time zone on a date before comparing it in a rule"
description: "Adding a time zone to a date before comparing it in a rule ensures accurate time-based evaluations. Use the rule's concat function to append the time zone abbreviation to the cell value before parsing or conversion."
url: "https://docs.itrsgroup.com/docs/faq/geneos/360011717993-geneos-how-to-add-a-time-zone-on-a-date-before-comparing-it-in-a-rule/index.html"
---
Use the rule's [concat function](https://docs.itrsgroup.com/docs/geneos/current/processing/monitoring-and-alerts/geneos_rulesactionsalerts_tr/#concat) to add a time zone abbreviation to the cell value.

![Concat function in rule](https://docscdn.itrsgroup.com/faq/images/geneos/rule-concat-function.png)

Rule block code:

```
set $(TIMEZONE) " GMT"
value parseDate ("%Y-%m-%d %H:%M:%S %Z", concat(path "PathCell" value, $(TIMEZONE)))
```

The [parseDate function](https://docs.itrsgroup.com/docs/geneos/current/processing/monitoring-and-alerts/geneos_rulesactionsalerts_tr/#parseDate) uses the time zone of the Gateway host. However, there are cases wherein the value displayed on a cell uses a different time zone and the time zone abbreviation is not explicitly displayed. The above solution adds the time zone abbreviation to a cell value prior to comparison or conversion to epoch format.


