mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-08-31 18:46:02 +00:00
Expand also has a dtstamp that needs to be set correctly.
This commit is contained in:
parent
36d35410a2
commit
9860f6a013
@ -163,7 +163,14 @@ $vtz = new vCalendar($tz->vtimezone);
|
||||
|
||||
$response = new XMLDocument(array("urn:ietf:params:xml:ns:timezone-service" => ""));
|
||||
$timezones = $response->NewXMLElement('urn:ietf:params:xml:ns:timezone-service:timezones');
|
||||
$timezones->NewElement('dtstamp', gmdate('Y-m-d\TH:i:s\Z'));
|
||||
$qry = new AwlQuery('SELECT to_char(max(last_modified),\'YYYY-MM-DD\"T\"HH24:MI:SS"Z"\') AS dtstamp FROM timezones');
|
||||
if ( $qry->Exec('tz/list',__LINE__,__FILE__) && $qry->rows() > 0 ) {
|
||||
$row = $qry->Fetch();
|
||||
$timezones->NewElement('dtstamp', $row->dtstamp);
|
||||
}
|
||||
else {
|
||||
$timezones->NewElement('dtstamp', gmdate('Y-m-d\TH:i:s\Z'));
|
||||
}
|
||||
|
||||
$from = new RepeatRuleDateTime($start);
|
||||
$until = new RepeatRuleDateTime($end);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user