Hi,

I didn't get what is the problem with the current code.
For me http://examples8x.wicket.apache.org/ajaxhellobrowser/ shows
utcDSTOffset=3
utcOffset=2
which seems to be correct.

On Mon, Oct 28, 2019 at 5:56 PM Maxim Solodovnik <solomax...@gmail.com>
wrote:

> On the other hand: the old code can be used if TZ is not available
> I'll do some tests and will create PR
>
> On Mon, 28 Oct 2019 at 22:51, Maxim Solodovnik <solomax...@gmail.com>
> wrote:
>
> > @devs are we supporting IE11 for wicket9? if not we can add this call to
> > standard ClientProperties ...
> > WDYT?
> >
> > On Mon, 28 Oct 2019 at 22:48, Maxim Solodovnik <solomax...@gmail.com>
> > wrote:
> >
> >> Hello,
> >>
> >> according to stackoverflow [1]
> >> you can use Intl.DateTimeFormat().resolvedOptions().timeZone
> >> ClientProperties can be extended to get this info on server
> >>
> >> [1]
> >>
> https://stackoverflow.com/questions/6939685/get-client-time-zone-from-browser
> >>
> >> On Mon, 28 Oct 2019 at 22:26, Calin Pavel <calin.pa...@tvh.com> wrote:
> >>
> >>> I'm trying to detect what is the current timezone offset for a client
> >>> browser accessing my Wicket application.
> >>> I found out that BrowserInfoForm.ClientPropertiesBean contains details
> >>> about:
> >>> - utcOffset
> >>> - utcDstOffset
> >>> but these are calculated at 1.Jan and 1.June.
> >>>
> >>> Is there any way to determine on server side what is the CURRENT
> timezone
> >>> offset of the client?
> >>> I've tried to use ClientPropertiesBean.timeZone, but that is relative /
> >>> guest and not real client timezone.
> >>>
> >>>
> >>> --
> >>>
> >>> Kind Regards,
> >>>
> >>>
> >>> *CALIN PAVELSoftware Engineer - consultant*
> >>> calin.pa...@tvh.com
> >>>
> >>> *TVH PARTS HOLDING NV*
> >>> Vichtseweg 129 • BE-8790 WAREGEM
> >>> T +32 56 43 42 11 <+3256434211> • F +32 56 43 44 88 • www.tvh.com
> >>>
> >>> <https://www.tvh.com/>
> >>>
> >>> --
> >>>
> >>>
> >>> **** DISCLAIMER
> >>> <https://media.tvh.com/content/pdf/various/Email-disclaimer.pdf> ****
> >>>
> >>> This
> >>> message is delivered to all addressees subject to the conditions set
> >>> forth
> >>> in the attached disclaimer, which is an integral part of this message.
> >>>
> >>>
> >>> When you communicate with us via e-mail, telephone, fax or via our
> >>> website,
> >>> we process your personal data. For more information on how we process
> >>> your
> >>> personal data, please consult our Privacy Policy
> >>> <https://www.tvh.com/privacy-policy>. By communicating with us, you
> >>> unambiguously consent to our use of your personal data as explained in
> >>> the
> >>> Privacy Policy.
> >>>
> >>
> >>
> >> --
> >> WBR
> >> Maxim aka solomax
> >>
> >
> >
> > --
> > WBR
> > Maxim aka solomax
> >
>
>
> --
> WBR
> Maxim aka solomax
>

Reply via email to