Page MenuHomePhabricator

Multi-day events should be correctly calculated for new js layout
ClosedPublic

Authored by lpriestley on May 25 2015, 5:52 PM.
Tags
None
Referenced Files
F14407456: D13008.diff
Tue, Dec 24, 2:56 AM
Unknown Object (File)
Wed, Dec 18, 4:09 AM
Unknown Object (File)
Thu, Dec 12, 2:45 AM
Unknown Object (File)
Tue, Dec 10, 10:19 PM
Unknown Object (File)
Sun, Dec 8, 9:34 PM
Unknown Object (File)
Sat, Dec 7, 7:09 AM
Unknown Object (File)
Fri, Dec 6, 12:48 PM
Unknown Object (File)
Thu, Dec 5, 4:33 PM
Subscribers

Details

Summary

Fixes T8304, Multi-day events should be correctly calculated for new js layout

Test Plan

A day with events starting before midnight of the displayed day should be correctly placed and fitted for day view.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

lpriestley retitled this revision from to Multi-day events should be correctly calculated for new js layout.
lpriestley updated this object.
lpriestley edited the test plan for this revision. (Show Details)
lpriestley added a reviewer: epriestley.
epriestley edited edge metadata.
epriestley added inline comments.
src/infrastructure/time/PhabricatorTime.php
75–79

Might be reasonable to just add this to PhabricatorUser, instead, if you want:

$datetime = $viewer->getDateTimeFromEpoch($epoch);
This revision is now accepted and ready to land.May 25 2015, 5:55 PM
src/infrastructure/time/PhabricatorTime.php
75–79

Unless you feel strongly about this, it makes more sense in PhabricatorTime, to me, because it's a time conversion, really, and that belongs in a time class of some sort (from where I sit). I, personally, don't mind passing in an extra param.

This revision was automatically updated to reflect the committed changes.