2

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?

1 Answer 1

4

Wrong control!

Change it to:

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

Be careful when working with date & time in SharePoint

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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