The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Timezone off hours help requested
Can someone please help me use the following code to show the correct times for the off hours (i.e 3.5) and well as the whole hours? The whole hours work fine but the off hours show up as full hour times.
PHP Code:
|
#2
|
||||
|
||||
do not use numeric vals, use strings instead,
so not $timezones[-3.5] but $timezones['-3.5'] |
#3
|
||||
|
||||
I just did that and it didn't change anything. The times are all still on the hour and not any on the half-hour.
It must be something in this part of the code that is not allowing it to show the half hour times. Any idea what to do to fix it? PHP Code:
|
#4
|
||||
|
||||
afaik negative and broken ints could always lead to problems, so i suggest to use strings.
(afaik it's also the rules of the vb3 coding styles...) as for the bug, you cannot use float values for mktime iirc, so you would have to use PHP Code:
PHP Code:
|
#5
|
||||
|
||||
Ah, ok. Now that makes sense. And it fixed the probelm, too. Thank you, sir.
One last question, is there a way to get the servertime without having to add the +8 in that line? |
#6
|
||||
|
||||
$vboptions[timezone] or such is the variable you are searching for.
not sure what exactly, but something like that, you ahve to look up the global vb files to find out the exact spelling |
#7
|
||||
|
||||
You are right. I found that about 10 minutes ago.
Would there be a way to set each timezone to allow DST on or off? I found out that Seoul doesn't have DST so the time is off by an hour. Can i do that per line somehow? Like this: PHP Code:
|
#8
|
||||
|
||||
aw, you're getting a bit too complicated now ^^
|
#9
|
|||
|
|||
Yes I am having trouble. Because it says I am on -5 GM and that is it 1:05 although its 2:05. Maybe it didnt see the time change? And is there anyway to make it so it works now?
And DST is on..so I don't know whats wrong. |
#10
|
||||
|
||||
Quote:
I'll get it figured out, somehow. Thanks for what you've done so far. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|