p:clock TimeZone

UI Components for JSF
Post Reply
User avatar
elecay
Posts: 1
Joined: 21 Mar 2013, 13:27
Location: Barcelona
Contact:

21 Mar 2013, 13:52

Hi!

First of all, thanks for this great components! This is my first post, so, thanks.

My question: I'm using the <p:clock> component. What I need is the "server" option, but I don't want the clock be adjusted by the client OS timezone. I want the clock be adjusted with a timezone given by me. This is because I want that if the user access to the web site from different places always sees the same hour. Also I want to be sure that the user sees the correct hour, doesn't matter if his/her computer have an incorrect hour or timezone.

Something like this:

Code: Select all

    <p:clock pattern="HH:mm:ss" mode="server" />
        <f:convertDateTime timeZone="Europe/Istanbul" />
    </p:clock>
How can I accomplish that?

Cheers!

--
Sebastián Rajo

litjones
Posts: 1
Joined: 29 Jul 2014, 14:18

29 Jul 2014, 14:23

Any update on this? I need GMT, not local time.

laxersaz
Posts: 2
Joined: 28 Dec 2012, 14:57

24 Oct 2014, 17:48

Hello all!

Yes this is exactly what we need here as well. Our Primefaces application needs to display the current plain server time without any conversion to client's timezones.

Best,
Benjamin

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

25 Oct 2014, 11:55

5.1 Showcase works fine... compare your code with that

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 25 guests