News:

Wondering if this will always be free?  See why free is better.

Main Menu

Online User Today problema [x Fasan]

Started by edi67, December 29, 2004, 10:16:25 AM

Previous topic - Next topic

edi67

accidenti nuovamente azzerato alle 22.00

dimmi per favore che altri file.php ti servono per controllare che te li mando.

mi interessa proprio questo mod
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

FaSan

... ma hai scaricato il nuovo package o hai installato qualche vecchia versione che avevi sull' hd ?

In quest'ultimo caso, dovevi cambiare la linea del MidNight...



FaSan

FaSan

a dire il ci sono anche un paio di bug(etti) fixati. Se scarica la nuova è sicuramente meglio.



FaSan

edi67

ho scaricato la ultimissima versione dal tuo pacchetto server ed installata

ti vorrei far notare questo post reply che un utente ha fatto sulla famosa linea midnight:

QuoteI'm no expert on php, so i'm cracking my head on this line of code... 

I've tryed a lot of stuf, but I'm not able yet of finding the ploblem....

But, takinh in consideration:
$midnight = (date("U") - ((date("H") + $modSettings['time_offset']) * 3600) - (date("i") * 60));

And simplifing to my basic thoughts:
Midnight =  (Unix Time since 1970 in seconds)  - ((Actual Hour + Offset)*3600) - minutes*60

And now, taking in consideration that the offset is +6, wich means I'm 6 hours ahead of the server:

Lets observe how this equation is calculating the midnight:

*Me*---- *Server*---*Midnight*
00:00----18:00------(24 hours ago)   ---> wrong
01:00----19:00------(25 hours ago)   ---> wrong
03:00----21:00------(27 hours ago)   ---> wrong
05:00----23:00------(29 hours ago)   ---> wrong
06:00----00:00------(6 hours ago)     ---> right !
07:00----01:00------(7 hours ago)     ---> right !
09:00----03:00------(9 hours ago)     ---> right !
15:00----09:00------(15 hours ago)   ---> right !
20:00----14:00------(20 hours ago)   ---> right !
etc, etc

I don't know if my thinking is alright, but this maybe the cause of the error.

Any opinions ?
Any solutions ?

vedi un po penso il bug sia solo li
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

FaSan

Quote from: edi67 on January 25, 2005, 03:14:37 AM
ti vorrei far notare questo post reply che un utente ha fatto sulla famosa linea midnight:

vedi un po penso il bug sia solo li


Quell' utente lamenta problemi con il timezone settato a livello utente. Se leggi con attenzione sottolinea il fatto che funziona correttamente con il timezone del server ma non con il timezone degli utenti.

Cosa alquanto complicata, poichè sarebbero poi da gestire le statistiche in base ai timezone di xxx numero di utenti che si collegano al forum :)


FaSan

edi67

non capisco proprio perche non funzia da me

ti mando lo stats.php ? lo stats.template.php ?
dimmi tu
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

FaSan

Hai ri-modificato tutto con il nuovo package ?

aspettiamo stanotte e vediamo cosa fà, nel caso mi mandi i files ;)


FaSan

edi67

nuovo di quando?
lo reinstallato ieri verso le 11 lo hai rimodificato oggi ?
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

FaSan

No No... intendevo dire l' ultimo messo online ;)

edi67

si fatto dai allora dimmi cosa ti devo mandare
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

edi67

nessuna novita fasan?

mi interessa molto che funga bene questo mod.  :(
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

edi67

finalmente il conteggio utenti è corretto ora, non so se dipenda dalle modifiche ma erano sempre le stesse oppure dal nuovo server che uso, comunque funziona bene.

Bravo fasan  ;D
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

Advertisement: