32 return "lib/pkp/registry/timeZones.xml";
39 $cache = $cacheManager->getFileCache(
41 array($this,
'_timeZoneCacheMiss')
45 $cacheTime =
$cache->getCacheTime();
46 if ($cacheTime !==
null && $cacheTime < filemtime($this->
getFilename())) {
55 if ($timeZones ===
null) {
58 $data = $xmlDao->parseStruct($this->
getFilename(), array(
'timezones',
'entry'));
60 if (isset($data[
'timezones'])) {
61 foreach ($data[
'entry'] as $timeZoneData) {
62 $timeZones[$timeZoneData[
'attributes'][
'key']] = $timeZoneData[
'attributes'][
'name'];
66 $cache->setEntireCache($timeZones);
77 return $cache->getContents();