Page MenuHomePhabricator

Time controls should format end date value correctly (not 5:0 PM)
ClosedPublic

Authored by lpriestley on Apr 15 2016, 7:11 PM.
Tags
None
Referenced Files
F13176467: D15725.diff
Wed, May 8, 2:13 PM
F13175320: D15725.diff
Wed, May 8, 4:37 AM
Unknown Object (File)
Mon, May 6, 6:29 AM
Unknown Object (File)
Sun, May 5, 7:21 AM
Unknown Object (File)
Wed, May 1, 11:47 AM
Unknown Object (File)
Wed, May 1, 2:03 AM
Unknown Object (File)
Mon, Apr 29, 11:54 AM
Unknown Object (File)
Mon, Apr 29, 2:58 AM
Subscribers

Details

Summary

Fixes T9296

Test Plan

Create an event, change start time to 3PM, end value should update to 4:00 PM, not 4:0 PM

Diff Detail

Repository
rP Phabricator
Branch
calendarendtimeformat
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 11762
Build 14739: Run Core Tests
Build 14738: arc lint + arc unit

Unit TestsFailed

TimeTest
175 msPhabricatorCelerityTestCase::Unknown Unit Message ("")
Assertion failed, expected 'true' (at PhabricatorCelerityTestCase.php:32): When this test fails, it means the Celerity resource map is out of date. Run `bin/celerity map` to rebuild it. ACTUAL VALUE
0 msAlmanacNamesTestCase::Unknown Unit Message ("")
30 assertions passed.
0 msAlmanacServiceTypeTestCase::Unknown Unit Message ("")
1 assertion passed.
0 msAphrontHTTPSinkTestCase::Unknown Unit Message ("")
6 assertions passed.
0 msAphrontHTTPSinkTestCase::Unknown Unit Message ("")
2 assertions passed.
View Full Test Results (1 Failed · 314 Passed)

Event Timeline

lpriestley retitled this revision from to Time controls should format end date value correctly (not 5:0 PM).
lpriestley updated this object.
lpriestley edited the test plan for this revision. (Show Details)
lpriestley added reviewers: epriestley, chad.
lpriestley edited edge metadata.

oops, wrong direction

epriestley edited edge metadata.

Run bin/celerity map to clear that test issue.

webroot/rsrc/js/core/behavior-time-typeahead.js
139

You shouldn't need the end_minutes === 0 part I think since 0 < 9?

This revision is now accepted and ready to land.Apr 15 2016, 7:15 PM
webroot/rsrc/js/core/behavior-time-typeahead.js
139

Haha yeah I got a little too excited about finding the problem

lpriestley edited edge metadata.

celery sticks

This revision was automatically updated to reflect the committed changes.