Skip to main content
Commonmark migration
Source Link

I believe you will have to use UserInfo class's getTimeZone() method:

getTimeZone()

 

Returns the current user’s local time zone.

and then convert according to the timezone, you can leverage the TimeZone Class for the offset and converting accordingly. not sure if there is another approach though (a better one =P).

I believe you will have to use UserInfo class's getTimeZone() method:

getTimeZone()

 

Returns the current user’s local time zone.

and then convert according to the timezone, you can leverage the TimeZone Class for the offset and converting accordingly. not sure if there is another approach though (a better one =P).

I believe you will have to use UserInfo class's getTimeZone() method:

getTimeZone()

Returns the current user’s local time zone.

and then convert according to the timezone, you can leverage the TimeZone Class for the offset and converting accordingly. not sure if there is another approach though (a better one =P).

Source Link
glls
  • 20.3k
  • 19
  • 49
  • 83

I believe you will have to use UserInfo class's getTimeZone() method:

getTimeZone()

Returns the current user’s local time zone.

and then convert according to the timezone, you can leverage the TimeZone Class for the offset and converting accordingly. not sure if there is another approach though (a better one =P).