microformats / microformats2-parsing

For collecting and handling issues with the microformats2 parsing specification: http://microformats.org/wiki/microformats2-parsing
14 stars 6 forks source link

Should timezone also be implied from previous dt-* #25

Closed kartikprabhu closed 6 years ago

kartikprabhu commented 6 years ago

According to http://microformats.org/wiki/value-class-pattern#microformats2_parsers_implied_date if a date is not found but a time is found then the date is implied from the previously found date.

Should a similar rule apply to timezones?

Example

<div class="h-event">
 <span class="e-summary">HomebrewWebsiteClub Berlin</span> will be next on 
 <span class="dt-start">
  <span class="value">2017-05-31</span>, from
  <span class="value">19:00</span> (UTC<span class="value">+0200</span>)
</span> to  <span class="dt-end">21:00</span>.</div>

The dt-end is parsed to 2017-05-31 21:00 using the implied date from dt-start. Implying the timezone to get 2017-05-31 21:00+0200 for dt-end might be better.

kartikprabhu commented 6 years ago

duplicate of #4