Panel Hook Modified

Hey all, a question

When using the page.update:after hook in a plugin like the below snippet, should the $oldPage and $newPage modified dates be different? I assumed it would return the previous modified date and then the current modified date?

Thanks!


     return [
         'hooks' => [
              'page.update:after' => function ($newPage, $oldPage) {
                      'oldPageModified' => $oldPage->modified('%d.%m.%Y %H:%M:%S'),
                      'newPageModified' => $newPage->modified('%d.%m.%Y %H:%M:%S'),
               }
         ]
     ]

$page->modified() actually reads the content file modification date, and that date will then be the same for both the $oldPage and $newPage. You can only fetch properties from $oldPage that belong to that object.