From 5e784c998baec8182ce60ddbb06bae142f87bd22 Mon Sep 17 00:00:00 2001 From: epriestley Date: Sun, 30 Oct 2016 09:15:43 -0700 Subject: [PATCH] Fix some extra "changed the start time of this event" transactions Summary: Ref T11326. Since we were missing an `(int)` cast here, the code ended up thinking that changing `12345` to `"12345"` was an edit. It isn't. Test Plan: Created/edited events, no more extra "changed start time from X to the same X" transaction clutter. Reviewers: chad Reviewed By: chad Maniphest Tasks: T11326 Differential Revision: https://secure.phabricator.com/D16773 --- src/view/form/control/AphrontFormDateControlValue.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/view/form/control/AphrontFormDateControlValue.php b/src/view/form/control/AphrontFormDateControlValue.php index f9dc14b238..51942c20e7 100644 --- a/src/view/form/control/AphrontFormDateControlValue.php +++ b/src/view/form/control/AphrontFormDateControlValue.php @@ -182,7 +182,7 @@ final class AphrontFormDateControlValue extends Phobject { return null; } - return $datetime->format('U'); + return (int)$datetime->format('U'); } private function getTimeFormat() {