I created a custom Page layout in Sharepoint Online and everything is working well until I noticed that the modified and created time is wrong (it adds 2 hours).


If the page is modified at 14.07 the page layout shows 16.07.


<SharePointWebControls:FieldValue FieldName="Modified" runat="server"></SharePointWebControls:FieldValue>

Any ideas?


Wrong control!

Change it to:

<SharePointWebControls:DateTimeField FieldName="Modified" runat="server" />

Be careful when working with date & time in SharePoint

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.