1. It seems that PGV shows the server date/time (help does not indicate which date/time is shown)?
Why do we decide centrally how to show them?
I would show the clients data in the way he wants to see or the way defined on his client machines locale.
I do not believe anyone is interested in the time of my server that as far as I know resides somewhere in USA.
The people in Scandinavia and Israel use normally the 24 hour time representation and the people in USA the 12 hour one.
2. How should I define the 24 hour representation? The existing 12 hour values are meaningless to me.
3. Is it possible to translate the am and pm texts?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I think that in the near future any logged in user will be able to define his/her date/time format. The admin will also be able to set the default sitewide. I think time format is/will be part of the language file. Maybe someone will shed more light on the subject.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In PGV the time of the server is displayed. So anywhere in the world visitors will see the servertime and not their own time.
The format of date and time (DMY and am/pm or 24h) is defined in the settings for each language. So basically, a user who sets his own language for PGV will see date and time in a format connected to that language.
To see/change the langsetting, choose (in V3) Edit and configure languagefiles, Configuration of supported languages.
Boudewijn.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
As the time-function is a standard PHP function it's not possible to translate anything on it, including the am/pm. All you can do is influence the way it's displayed.
g is 12-hr clock without leading zeroes
G is 24-hr clock without leading zeroes
i is minutes with leading zeroes
s is seconds with leading zeroes
a is am/pm
A is AM/PM
Until a user logs in there is no way to send the clients local time to the server, so you will see server time until you login. Once logged in you should see client time.
--John
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
John,
That makes sense.
Only I still see the server time even after I am logged-in.
Boudewijn,
I have updated the Hebrew time to G:i:s on the server.
I can see some countries have entered a value G:i:sa. It does seem to be OK, but it works as the one without the a (at least before the server's noon).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Right now the infrastructure is in place for the admin to be able to set the default timezone. I don't much see a need for it though. It seems to me that server time would be more valuable than a random time chosen by the admin. Don't you think?
--John
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Yes and no. In my case I know that 90% of the people interested in my tree are on the east coast of the USA (-5GMT) so the server time (in CA) is off by 3 hours for 90% of users. It's really not a big deal, but for international users of PGV where many of the servers are overseas, the actual date of the server will be off for many hours, throwing off myGedview, calendar etc.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
1. It seems that PGV shows the server date/time (help does not indicate which date/time is shown)?
Why do we decide centrally how to show them?
I would show the clients data in the way he wants to see or the way defined on his client machines locale.
I do not believe anyone is interested in the time of my server that as far as I know resides somewhere in USA.
The people in Scandinavia and Israel use normally the 24 hour time representation and the people in USA the 12 hour one.
2. How should I define the 24 hour representation? The existing 12 hour values are meaningless to me.
3. Is it possible to translate the am and pm texts?
I think that in the near future any logged in user will be able to define his/her date/time format. The admin will also be able to set the default sitewide. I think time format is/will be part of the language file. Maybe someone will shed more light on the subject.
Hi Meliza,
In PGV the time of the server is displayed. So anywhere in the world visitors will see the servertime and not their own time.
The format of date and time (DMY and am/pm or 24h) is defined in the settings for each language. So basically, a user who sets his own language for PGV will see date and time in a format connected to that language.
To see/change the langsetting, choose (in V3) Edit and configure languagefiles, Configuration of supported languages.
Boudewijn.
Thanks for your answer.
It is not clear to me why some user would be interested in the server time. But OK.
I can see "g:i:sa" for the 12 hour display.
What should be filled for the 24 hour display?
Will it possible to translate the am and pm of the time to the languages?
Hi Meliza,
As the time-function is a standard PHP function it's not possible to translate anything on it, including the am/pm. All you can do is influence the way it's displayed.
g is 12-hr clock without leading zeroes
G is 24-hr clock without leading zeroes
i is minutes with leading zeroes
s is seconds with leading zeroes
a is am/pm
A is AM/PM
So a 24-hr clock would be: G:i:s
Those are most of the sensible options for time. You can see all at: http://nl.php.net/manual/en/function.date.php
Keep in mind that those options only apply to time and NOT to the definition of date in PGV.
Boudewijn.
Until a user logs in there is no way to send the clients local time to the server, so you will see server time until you login. Once logged in you should see client time.
--John
But can the admin set a default timezone for PGV regardless of where the server is?
Thanks!
John,
That makes sense.
Only I still see the server time even after I am logged-in.
Boudewijn,
I have updated the Hebrew time to G:i:s on the server.
I can see some countries have entered a value G:i:sa. It does seem to be OK, but it works as the one without the a (at least before the server's noon).
Right now the infrastructure is in place for the admin to be able to set the default timezone. I don't much see a need for it though. It seems to me that server time would be more valuable than a random time chosen by the admin. Don't you think?
--John
Yes and no. In my case I know that 90% of the people interested in my tree are on the east coast of the USA (-5GMT) so the server time (in CA) is off by 3 hours for 90% of users. It's really not a big deal, but for international users of PGV where many of the servers are overseas, the actual date of the server will be off for many hours, throwing off myGedview, calendar etc.
Just curious, why display the time at all? Since when is the current time (hh:mm:ss) significant when looking at your family history?
J