Timezone Mod? - Posted (1430 Views)
Support Moderator
Shaggy
Posts: 6780
6780
Huw, think you were the last person to work on the timezone mod so this topic is probably best directed at you - I'm just wondering how far you had progressed with it and what problems you had encountered when you stopped working on it? If "real" work ever lets up, I'd love to give this a whirl; got a couple of ideas on how to implement it that, hopefully, shouldn't be too resource intensive.
<
Search is your friend “I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
 Sort direction, for dates DESC means newest first  
 Page size 
Posted
Forum Admin
HuwR
Posts: 20611
20611
well, it was fully functional, but that was a long time ago, version 3.3 I think, it was never updated to work with the current code at all.<
Posted
Forum Admin
HuwR
Posts: 20611
20611
I can probably dig out the original mod and instructions if that would help. it's not quite as simple as you would imagine though because forum dates are stored in relation to forum time rather than server time and it requires a fairly big lookup table to decide whether or not to use daylight saving<
Posted
Forum Admin
HuwR
Posts: 20611
20611
and it required a lot of code edits and db changes which is why it never really took off as a mod, was pretty difficult to implement for a novice<
Posted
Forum Admin
HuwR
Posts: 20611
20611
her ?<
Posted
Junior Member
golfmann
Posts: 450
450
:)<
Posted
Snitz Forums Admin
ruirib
Posts: 26364
26364
I think the mod was added to v.4.0 beta, no? It was integrated with it, right?<
Posted
Forum Admin
HuwR
Posts: 20611
20611
Originally posted by ruirib
I think the mod was added to v.4.0 beta, no? It was integrated with it, right?
yes it was<
Posted
Forum Admin
HuwR
Posts: 20611
20611
this is the original zip file
warning the code was designed to work with Snitz version 3.2, so may need extensive modification<
Posted
Support Moderator
Shaggy
Posts: 6780
6780
Ah, nuts, hadn't thought far enough ahead to consider DST sad Ta for the original, though smile
Here's what I had been thinking:

» On the regisatratio/profile pages, display the current forum time with a combo to allow the member to select the difference between that and their current time (-24 to +24).
» Use the chkUser function to assign the member's selected difference to a varaible, a lá MemberId.
» Scrap the strToDate function altogther, replacing it with a modified version of the chkDate function instead. The member's selected difference would be added to the date generated by this function. Obviously, this is going to be the biggest job involved in the mod and does present problems for other mods already using the strToDate function.
» At a later stage add additional profile options to allow the member to slect how the date and time are displayed.
<
Search is your friend “I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Posted
Forum Admin
HuwR
Posts: 20611
20611
» Scrap the strToDate function altogther, replacing it with a modified version of the chkDate function instead. The member's selected difference would be added to the date generated by this function. Obviously, this is going to be the biggest job involved in the mod and does present problems for other mods already using the strToDate function.
That shouldn't be too much of a problem the strTodate function is only used in few places,pop_profile and the archiving code admin_forums mainly<
You Must enter a message