From 3c9b9540e4ff148ab9f434cad322a5f6055d32c1 Mon Sep 17 00:00:00 2001
From: nathan <nathangray.bsc+github@gmail.com>
Date: Tue, 1 Mar 2022 16:50:05 -0700
Subject: [PATCH] Fix copy/paste error - Et2DateDuration does not have an
 options property to access

---
 api/js/etemplate/Et2Date/Et2DateDuration.ts | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/api/js/etemplate/Et2Date/Et2DateDuration.ts b/api/js/etemplate/Et2Date/Et2DateDuration.ts
index 3484378b1c..7498a9f484 100644
--- a/api/js/etemplate/Et2Date/Et2DateDuration.ts
+++ b/api/js/etemplate/Et2Date/Et2DateDuration.ts
@@ -263,9 +263,9 @@ export class Et2DateDuration extends Et2InputWidget(FormControlMixin(LitElement)
 	transformAttributes(attrs)
 	{
 		// Clean formats
-		if (typeof attrs.display_format === 'string')
+		if(typeof attrs.display_format === 'string')
 		{
-			attrs.display_format = attrs.display_format.replace(/[^dhms]/g,'');
+			attrs.display_format = attrs.display_format.replace(/[^dhms]/g, '');
 		}
 		super.transformAttributes(attrs);
 	}
@@ -449,9 +449,9 @@ export class Et2DateDuration extends Et2InputWidget(FormControlMixin(LitElement)
 				return _highest ? _value : _value % 60;
 			case 'h':
 				_value = Math.floor(_value / 3600);
-				return _highest ? _value : _value % this.options.hours_per_day;
+				return _highest ? _value : _value % this.hours_per_day;
 			case 'd':
-				return Math.floor(_value / 3600 * this.options.hours_per_day);
+				return Math.floor(_value / 3600 * this.hours_per_day);
 		}
 	}