1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-28 09:42:41 +01:00
phorge-phorge/src/applications/calendar
epriestley 00a1dec7a6 Render timezones in event reminder mail, and render them more nicely
Summary:
Fixes T12356.

  - In this mail, we currently render "6:00 AM". Instead, render "6:00 AM (PDT)" or similar. This is consistent with times in other modern Transaction mail.
  - Previously, we would render "UTC-7". Render "PDT" instead. For obscure zones with no known timezone abbreviation, fall back to "UTC-7".

Test Plan:
  - Used `bin/calendar notify --minutes X` to trigger notifications, read email bodies.
  - Used this script to list all `T` values and checked them for sanity:

```lang=php
<?php

$now = new DateTime();

$locales = DateTimeZone::listIdentifiers();
foreach ($locales as $locale) {
  $zone = new DateTimeZone($locale);
  $now->setTimeZone($zone);

  printf(
    "%s (%s)\n",
    $locale,
    $now->format('T'));
}
```

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T12356

Differential Revision: https://secure.phabricator.com/D17646
2017-04-10 08:48:37 -07:00
..
__tests__ Fix errors found by PHPStan 2017-02-17 10:10:15 +00:00
application Allow users to mark themselves as "Available", "Busy" or "Away" while attending an event 2016-11-04 16:55:44 -07:00
capability Provide default view and edit policies in Calendar, plus "Event Host" and "Event Invitees" 2016-07-13 15:42:12 -07:00
codex Require several advanced postgraduate degrees to understand object policies 2016-11-09 15:05:38 -08:00
command Convert Calendar to Modular Transactions 2016-07-13 07:46:33 -07:00
conduit Add calendar.event.search and calendar.event.edit 2016-07-13 10:17:46 -07:00
controller Make the modal choice between "Edit This Event" and "Edit Future Events" more clear 2016-11-28 10:47:58 -08:00
editor Fix a CalendarExport issue when an existing export has an unsupported mode 2017-02-16 06:22:21 -08:00
herald Add basic Herald support to Calendar 2016-08-06 14:37:33 -07:00
icon Provide a "PHUIFormIconSetControl" 2015-12-16 08:46:51 -08:00
import Provide a standalone bin/calendar reload ... workflow for testing/debugging 2016-11-07 10:55:18 -08:00
importlog Queue large ICS files for background import 2016-11-06 07:46:21 -08:00
mail phtize all the things 2015-05-22 21:16:39 +10:00
management Provide a standalone bin/calendar reload ... workflow for testing/debugging 2016-11-07 10:55:18 -08:00
notifications Render timezones in event reminder mail, and render them more nicely 2017-04-10 08:48:37 -07:00
phid Remove "isCancelledEvent()" wrapper on Calendar Events 2016-10-31 15:30:21 -07:00
policyrule Improve Calendar event behavior for group invites 2016-11-15 11:16:55 -08:00
query Fix an issue where recurring ghost events could go missing if queried with a limit 2017-04-10 08:48:21 -07:00
remarkup Calendar event monograms, part 3. Remarkup for calendar event monograms. 2015-04-27 14:27:34 -07:00
search Rename Event "userPHID" to "hostPHID" 2016-07-13 15:39:55 -07:00
storage Fix two issues with user Calendar event availability cache display 2017-04-10 08:47:27 -07:00
typeahead Make Calendar query for indirect invites/RSVPs by default, like Differential 2016-11-15 12:47:01 -08:00
util Fix errors found by PHPStan 2017-02-18 09:24:56 +00:00
view Use the same date rendering display logic for both tooltips and subheaders 2016-11-16 08:37:25 -08:00
worker Queue large ICS files for background import 2016-11-06 07:46:21 -08:00
xaction Fix an issue where setting a recurrence end date on a Calendar event without one could fatal 2017-01-06 16:36:09 -08:00