Display DateTime with TimeZone in Visualforce Page

In Salesforce,Date and Date/Time values are stored in GMT,and a GMT time will be outputed when we use apex:outputText tag. e.g. Result TimeZone 1 ※Time Zone : (GMT+09:00) Japan Standard Time (Asia/Tokyo)

As we know,we can not determine a user’s time zone in a formula,but there has two ways to fix this with Apex,maybe more.

1.Get User TimeZone Offset in Apex

Result TimeZone 2

2.Use apex:outputField

Result TimeZone 3 Enjoy it!