mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 23:06:37 +00:00
honor DURATION in 57_Calendar.pm
git-svn-id: https://svn.fhem.de/fhem/trunk@6021 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
09f5ce0991
commit
a7e48837a7
@ -1,5 +1,6 @@
|
||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
||||
# Do not insert empty lines here, update check depends on it.
|
||||
- change: honor DURATION in 57_Calendar.pm
|
||||
- bugfix: YAMAHA_AVR: don't let FHEM hang anymore, when the receiver
|
||||
is not reachable
|
||||
- change: 55_GDS.pm: use Blocking.pm for retrieval of large files
|
||||
|
@ -330,7 +330,11 @@ sub fromVEvent {
|
||||
$self->{uid}= $vevent->value("UID");
|
||||
$self->{uid}=~ s/\W//g; # remove all non-alphanumeric characters, this makes life easier for perl specials
|
||||
$self->{start}= tm($vevent->value("DTSTART"));
|
||||
$self->{end}= tm($vevent->value("DTEND"));
|
||||
if(defined($vevent->value("DTEND"))) {
|
||||
$self->{end}= tm($vevent->value("DTEND"));
|
||||
} elsif(defined($vevent->value("DURATION"))) {
|
||||
$self->{end}= $self->{start} + d($vevent->value("DURATION"));
|
||||
}
|
||||
$self->{lastModified}= tm($vevent->value("LAST-MODIFIED"));
|
||||
$self->{summary}= $vevent->value("SUMMARY");
|
||||
$self->{location}= $vevent->value("LOCATION");
|
||||
|
Loading…
x
Reference in New Issue
Block a user