Xojo Conferences

Platforms to show: All Mac Windows Linux Cross-Platform

FAQ.How to get a time converted to user time zone in a web app?
Answer: Use the WebSession.GMTOffset property.
Sub Open()
// current date on server
dim d as new date
dim s as string = d.LongTime

// adjust to client GMT offset
d.GMTOffset = d.GMTOffset + Session.GMTOffset

dim t as string = D.LongTime

MsgBox s+EndOfLine+t
End Sub

Feedback, Comments & Corrections

The biggest plugin in space...

MBS FileMaker tutorial videos