1

Problem

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).

Example

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

Code

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

Any ideas?

3

Wrong control!

Change it to:

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

Be careful when working with date & time in SharePoint

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.