feat(tw): Applied timezone to datetimes that are not given in local time

This commit is contained in:
Aerex
2020-06-03 00:46:06 -05:00
parent c2e181aa75
commit c302c4653a
2 changed files with 14 additions and 13 deletions

View File

@@ -38,14 +38,12 @@ class StorageManager {
if (!isset($this->configs)) {
throw new \Exception('StorageManger was not initialize or configs are not defined');
}
foreach ($this->configs as $key => $value) {
if ($key !== 'logger') {
$storage = $this->storages[$key];
if (!isset($storage)){
throw new \Exception();
}
$storage->save($calendar);
foreach ($this->configs['storages'] as $key => $value) {
$storage = $this->storages[$key];
if (!isset($storage)){
throw new \Exception();
}
$storage->save($calendar);
}
}
}