[MODDB] Automatische Sommerzeit 2.0.2

In diesem Forum können Mod-Autoren ihre Mods vorstellen, die sich noch im Entwicklungsstatus befinden. Der Einbau in Foren im produktiven Betrieb wird nicht empfohlen.
Forumsregeln
phpBB 3.0 hat das Ende seiner Lebenszeit überschritten
phpBB 3.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 3.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf die neuste phpBB-Version, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Benutzeravatar
MartectX
Ehemaliger Übersetzer
Beiträge: 648
Registriert: 10.05.2008 17:08
Wohnort: Marienplatz

[MODDB] Automatische Sommerzeit 2.0.2

Beitrag von MartectX »

MOD Title: Automatische Sommerzeit 2
MOD Description: Diese Modifikation führt ein städtebasiertes Zeitzonensystem ein und verwaltet separat für jeden Benutzer Sommer- und Winterzeit. Außerdem überprüft sie für jedes Datum, ob es in die Sommerzeit fällt und passt die Ausgabe entsprechend an.
MOD Version: 2.0.2
MOD Download: http://mods.martectx.de/automatic_dst_2.zip
Thema auf phpbb.com: http://www.phpbb.com/community/viewtopi ... &t=1496415
Zuletzt geändert von MartectX am 19.11.2009 10:43, insgesamt 16-mal geändert.
Benutzeravatar
marc1706
phpBB.com
Beiträge: 323
Registriert: 20.08.2008 11:11
Wohnort: München
Kontaktdaten:

Re: [DEV] Automatische Sommerzeit 1.1.0

Beitrag von marc1706 »

Also an deiner Stelle würde ich die Version in 1.2.0 ändern, denn mit der 1.1.0 wirst du z.B. auf phpBB.com niemals in die MOD DB reinkommen.
Die 1.1.x Versionen sind eigentlich Entwicklerversionen.
phpBB Lead Developer
Benutzeravatar
MartectX
Ehemaliger Übersetzer
Beiträge: 648
Registriert: 10.05.2008 17:08
Wohnort: Marienplatz

Re: [BETA] Automatische Sommerzeit 1.1.1

Beitrag von MartectX »

marc1706 hat geschrieben:Also an deiner Stelle würde ich die Version in 1.2.0 ändern, denn mit der 1.1.0 wirst du z.B. auf phpBB.com niemals in die MOD DB reinkommen.
Die 1.1.x Versionen sind eigentlich Entwicklerversionen.
MartectX hat geschrieben:DIESER MOD IST IN DER ENTWICKLUNG.
Version 1.1.1
  • Zeitzonen komplett geändert, um verschiedene Sommerzeitgebiete zu berücksichtigen
  • Nunmehr überflüssige die Sommerzeit betreffende Board- und Benutzereinstellungen deaktiviert
  • Datumsengine prüft nun für jedes Datum, ob es in die Sommerzeit fällt
Benutzeravatar
MartectX
Ehemaliger Übersetzer
Beiträge: 648
Registriert: 10.05.2008 17:08
Wohnort: Marienplatz

Re: [BETA] Automatische Sommerzeit 1.1.2

Beitrag von MartectX »

Version 1.1.2
  • Automatisches Setup des anonymen Benutzers
  • Übersetzung der Zeitzonen
  • Bugfix der Zeitzonenanzeige
Anmerkung: Ihr könnt die Sommerzeitfunktionalität ganz einfach prüfen, in dem Ihr als Zeitzone Amerika/Anchorage auswählt - die haben nämlich in diesem Jahr jetzt schon Sommerzeit!
IceD
Mitglied
Beiträge: 265
Registriert: 25.12.2006 19:42
Wohnort: Dresden

Re: [BETA] Automatische Sommerzeit 1.1.2

Beitrag von IceD »

hatte vorher 1.0.6. drin und hab jetzt auf 1.1.2 umgestellt, wenn ich meine Einstellungen ändern will, bekomme ich folgende Fehlermeldung:
Parse error: syntax error, unexpected '}' in includes\template.php(187) : eval()'d code on line 84
Benutzeravatar
MartectX
Ehemaliger Übersetzer
Beiträge: 648
Registriert: 10.05.2008 17:08
Wohnort: Marienplatz

Re: [BETA] Automatische Sommerzeit 1.1.2

Beitrag von MartectX »

IceD hat geschrieben:hatte vorher 1.0.6. drin und hab jetzt auf 1.1.2 umgestellt, wenn ich meine Einstellungen ändern will, bekomme ich folgende Fehlermeldung:
Parse error: syntax error, unexpected '}' in includes\template.php(187) : eval()'d code on line 84
Du hast die Änderungen an den Template-Dateien falsch gemacht. Beachte, dass es einmal "davor einfügen" und einmal "danach einfügen" heißt!
IceD
Mitglied
Beiträge: 265
Registriert: 25.12.2006 19:42
Wohnort: Dresden

Re: [BETA] Automatische Sommerzeit 1.1.2

Beitrag von IceD »

danke,
hatte gedacht, dass die besagten Zeilen grau (deaktiviert) sein müssten. Dem scheint aber nicht so zu sein.

Nun funktionierts.


Edit: Ich vermisse seit dem Einbau meine "Wer ist online" Anzeige (im ACP ist alles aktiviert). :(
Benutzeravatar
MartectX
Ehemaliger Übersetzer
Beiträge: 648
Registriert: 10.05.2008 17:08
Wohnort: Marienplatz

Re: [BETA] Automatische Sommerzeit 1.1.2

Beitrag von MartectX »

In der nächsten Version möchte ich einen Transfer der jetzigen Zeitzonen in die neuen realisieren. Zu diesem Zwecke habe ich folgende Liste entworfen. Ich habe versucht, die herausragendste Entsprechung für jede Zone zu finden. Anregungen natürlich sehr willkommen!

Code: Alles auswählen

/**
* Time Zone Conversion Table
*/

'-12'	=> '',						// [UTC - 12] Baker Island Time
'-11'	=> 'Pacific/Samoa',			// [UTC - 11] Niue Time, Samoa Standard Time
'-10'	=> 'Pacific/Tahiti',		// [UTC - 10] Hawaii-Aleutian Standard Time, Cook Island Time
'-9.5'	=> '',						// [UTC - 9:30] Marquesas Islands Time
'-9'	=> 'America/Anchorage',		// [UTC - 9] Alaska Standard Time, Gambier Island Time
'-8'	=> 'America/Los_Angeles',	// [UTC - 8] Pacific Standard Time
'-7'	=> 'America/Phoenix',		// [UTC - 7] Mountain Standard Time
'-6'	=> 'America/Detroit',		// [UTC - 6] Central Standard Time
'-5'	=> 'America/Chicago',		// [UTC - 5] Eastern Standard Time
'-4.5'	=> '',						// [UTC - 4:30] Venezuelan Standard Time
'-4'	=> 'America/Grenada',		// [UTC - 4] Atlantic Standard Time
'-3.5'	=> '',						// [UTC - 3:30] Newfoundland Standard Time
'-3'	=> 'America/Sao_Paulo',		// [UTC - 3] Amazon Standard Time, Central Greenland Time
'-2'	=> 'America/Scoresbysund',	// [UTC - 2] Fernando de Noronha Time, South Georgia & the South Sandwich Islands Time
'-1'	=> 'Atlantic/Cape_Verde',	// [UTC - 1] Azores Standard Time, Cape Verde Time, Eastern Greenland Time
'0'		=> 'Europe/London',			// [UTC] Western European Time, Greenwich Mean Time
'1'		=> 'Europe/Berlin',			// [UTC + 1] Central European Time, West African Time
'2'		=> 'Europe/Kiev',			// [UTC + 2] Eastern European Time, Central African Time
'3'		=> 'Europe/Moscow',			// [UTC + 3] Moscow Standard Time, Eastern African Time
'3.5'	=> 'Asia/Tehran',			// [UTC + 3:30] Iran Standard Time
'4'		=> 'Asia/Dubai',			// [UTC + 4] Gulf Standard Time, Samara Standard Time
'4.5'	=> 'Asia/Kabul',			// [UTC + 4:30] Afghanistan Time
'5'		=> 'Asia/Karachi',			// [UTC + 5] Pakistan Standard Time, Yekaterinburg Standard Time
'5.5'	=> 'Asia/Calcutta',			// [UTC + 5:30] Indian Standard Time, Sri Lanka Time
'5.75'	=> 'Asia/Katmandu',			// [UTC + 5:45] Nepal Time
'6'		=> 'Asia/Novosibirsk',		// [UTC + 6] Bangladesh Time, Bhutan Time, Novosibirsk Standard Time
'6.5'	=> 'Asia/Rangoon',			// [UTC + 6:30] Cocos Islands Time, Myanmar Time
'7'		=> 'Asia/Bangkok',			// [UTC + 7] Indochina Time, Krasnoyarsk Standard Time
'8'		=> 'Asia/Shanghai',			// [UTC + 8] Chinese Standard Time, Australian Western Standard Time, Irkutsk Standard Time
'8.75'	=> '',						// [UTC + 8:45] Southeastern Western Australia Standard Time
'9'		=> 'Asia/Tokyo',			// [UTC + 9] Japan Standard Time, Korea Standard Time, Chita Standard Time
'9.5'	=> '',						// [UTC + 9:30] Australian Central Standard Time
'10'	=> 'Asia/Vladivostok',		// [UTC + 10] Australian Eastern Standard Time, Vladivostok Standard Time
'10.5'	=> 'Australia/Lord_Howe',	// [UTC + 10:30] Lord Howe Standard Time
'11'	=> 'Pacific/Guadalcanal',	// [UTC + 11] Solomon Island Time, Magadan Standard Time
'11.5'	=> 'Pacific/Norfolk',		// [UTC + 11:30] Norfolk Island Time
'12'	=> 'Pacific/Auckland',		// [UTC + 12] New Zealand Time, Fiji Time, Kamchatka Standard Time
'12.75'	=> 'Pacific/Chatham',		// [UTC + 12:45] Chatham Islands Time
'13'	=> 'Pacific/Tongatapu',		// [UTC + 13] Tonga Time, Phoenix Islands Time
'14'	=> 'Pacific/Kiritimati',	// [UTC + 14] Line Island Time
IceD hat geschrieben:Edit: Ich vermisse seit dem Einbau meine "Wer ist online" Anzeige (im ACP ist alles aktiviert). :(
Der MOD ändert nichts an index_body.html und bei mir ist die Anzeige noch da...
Benutzeravatar
nickvergessen
Ehrenadmin
Beiträge: 11559
Registriert: 09.10.2006 21:56
Wohnort: Stuttgart, Germany
Kontaktdaten:

Re: [BETA] Automatische Sommerzeit 1.1.2

Beitrag von nickvergessen »

Warum nimmst du nicht die offiziellen Bezeichnungen aus der common.php

Code: Alles auswählen

	'tz_zones'	=> array(
		'-12'	=> '[UTC - 12] Baker Island Time',
		'-11'	=> '[UTC - 11] Niue Time, Samoa Standard Time',
		'-10'	=> '[UTC - 10] Hawaii-Aleutian Standard Time, Cook Island Time',
		'-9.5'	=> '[UTC - 9:30] Marquesas Islands Time',
		'-9'	=> '[UTC - 9] Alaska Standard Time, Gambier Island Time',
		'-8'	=> '[UTC - 8] Pacific Standard Time',
		'-7'	=> '[UTC - 7] Mountain Standard Time',
		'-6'	=> '[UTC - 6] Central Standard Time',
		'-5'	=> '[UTC - 5] Eastern Standard Time',
		'-4.5'	=> '[UTC - 4:30] Venezuelan Standard Time',
		'-4'	=> '[UTC - 4] Atlantic Standard Time',
		'-3.5'	=> '[UTC - 3:30] Newfoundland Standard Time',
		'-3'	=> '[UTC - 3] Amazon Standard Time, Central Greenland Time',
		'-2'	=> '[UTC - 2] Fernando de Noronha Time, South Georgia & the South Sandwich Islands Time',
		'-1'	=> '[UTC - 1] Azores Standard Time, Cape Verde Time, Eastern Greenland Time',
		'0'		=> '[UTC] Western European Time, Greenwich Mean Time',
		'1'		=> '[UTC + 1] Central European Time, West African Time',
		'2'		=> '[UTC + 2] Eastern European Time, Central African Time',
		'3'		=> '[UTC + 3] Moscow Standard Time, Eastern African Time',
		'3.5'	=> '[UTC + 3:30] Iran Standard Time',
		'4'		=> '[UTC + 4] Gulf Standard Time, Samara Standard Time',
		'4.5'	=> '[UTC + 4:30] Afghanistan Time',
		'5'		=> '[UTC + 5] Pakistan Standard Time, Yekaterinburg Standard Time',
		'5.5'	=> '[UTC + 5:30] Indian Standard Time, Sri Lanka Time',
		'5.75'	=> '[UTC + 5:45] Nepal Time',
		'6'		=> '[UTC + 6] Bangladesh Time, Bhutan Time, Novosibirsk Standard Time',
		'6.5'	=> '[UTC + 6:30] Cocos Islands Time, Myanmar Time',
		'7'		=> '[UTC + 7] Indochina Time, Krasnoyarsk Standard Time',
		'8'		=> '[UTC + 8] Chinese Standard Time, Australian Western Standard Time, Irkutsk Standard Time',
		'8.75'	=> '[UTC + 8:45] Southeastern Western Australia Standard Time',
		'9'		=> '[UTC + 9] Japan Standard Time, Korea Standard Time, Chita Standard Time',
		'9.5'	=> '[UTC + 9:30] Australian Central Standard Time',
		'10'	=> '[UTC + 10] Australian Eastern Standard Time, Vladivostok Standard Time',
		'10.5'	=> '[UTC + 10:30] Lord Howe Standard Time',
		'11'	=> '[UTC + 11] Solomon Island Time, Magadan Standard Time',
		'11.5'	=> '[UTC + 11:30] Norfolk Island Time',
		'12'	=> '[UTC + 12] New Zealand Time, Fiji Time, Kamchatka Standard Time',
		'12.75'	=> '[UTC + 12:45] Chatham Islands Time',
		'13'	=> '[UTC + 13] Tonga Time, Phoenix Islands Time',
		'14'	=> '[UTC + 14] Line Island Time',
	),
kein Support per PN
Benutzeravatar
MartectX
Ehemaliger Übersetzer
Beiträge: 648
Registriert: 10.05.2008 17:08
Wohnort: Marienplatz

Re: [BETA] Automatische Sommerzeit 1.1.2

Beitrag von MartectX »

nickvergessen hat geschrieben:Warum nimmst du nicht die offiziellen Bezeichnungen aus der common.php[/code]
Die aktuellen phpBB3-Zeitzonen sind inkompatibel zum städtebasierten PHP-System. Ich muss es irgendwie konvertieren und das da oben ist mein Versuch.
Antworten

Zurück zu „[3.0.x] Mods in Entwicklung“