LP1879517: Surveys shouldn't end before they begin
[evergreen-equinox.git] / Open-ILS / src / eg2 / src / app / core / format.service.ts
index b58f551..5386a8d 100644 (file)
@@ -235,7 +235,7 @@ export class FormatService {
      * Create a Moment from an ISO string
      */
     momentizeIsoString(isoString: string, timezone: string): moment.Moment {
-        return (isoString.length) ? moment(isoString, timezone) : moment();
+        return (isoString?.length) ? moment(isoString).tz(timezone) : moment();
     }
 
     /**