Zum Inhalt springen

Powermail Datumsfehler

Erstellt am 27. September 2011 · 7 Antworten · letzte Antwort am 28. September 2011

Tags: Frage

profimong ·

Hallo,

ich habe in meinem Powermail-Formular zwei Datumsfelder. Ich kann im sich öffnenden Kalender dann ein Datum auswählen welches auch richtig angezeigt wird.

27.09.2011

habe ich alle Felder ausgewählt und gehe weiter auf die Bestätigungsseite steht beim Datum dort.

2011.09.26 :o

also nicht bloß das Englische Format sondern 1 Tag früher als ich ausgewählt habe.

Wer kann zu diesem Fehler etwas sagen und wie bekomme ich das deutsche Format auf der Bestätigungsseite.

Habe per TS schon

plugin.tx_powermail_pi1.format.datetime = %d.%m.%Y %H:%M

plugin.tx_powermail_pi1.format.date = %d.%m.%Y

eingefügt, ändert aber nichts.

Danke

Testpagetester ·
recipient_mail {
			# manipulate values related to its fieldtype (text, textarea, select, check, radio, date, etc...)
			date = TEXT
			date {
				field = date
				strftime = {$plugin.powermail.format.date}
			}
			
			datetime = TEXT
			datetime {
				field = datetime
				strftime = {$plugin.powermail.format.datetime}
			}

			# Example to manipulate field with uid 999
#			uid999 = TEXT
#			uid999.field = uid999
#			uid999.wrap = <b>|</b>
		}
		
		# Manipulation of values for email to sender (confirmation mail)
		sender_mail {
			# manipulate values related to its fieldtype (text, textarea, select, check, radio, date, etc...)
			date = TEXT
			date {
				field = date
				strftime = {$plugin.powermail.format.date}
			}
			
			datetime = TEXT
			datetime {
				field = datetime
				strftime = {$plugin.powermail.format.datetime}
			}

			# Example to manipulate field with uid 999
#			uid999 = TEXT
#			uid999.field = uid999
#			uid999.wrap = <b>|</b>
		}
		
		# Manipulation of values for email to sender (confirmation mail)
		thx {
			# manipulate values related to its fieldtype (text, textarea, select, check, radio, date, etc...)
			date = TEXT
			date {
				field = date
				strftime = {$plugin.powermail.format.date}
			}
			
			datetime = TEXT
			datetime {
				field = datetime
				strftime = {$plugin.powermail.format.datetime}
			}

			# Example to manipulate field with uid 999
#			uid999 = TEXT
#			uid999.field = uid999
#			uid999.wrap = <b>|</b>
		}
		
		# Manipulation of values for email to sender (confirmation mail)
		confirmation {
			# manipulate values related to its fieldtype (text, textarea, select, check, radio, date, etc...)
			date = TEXT
			date {
				field = date
				strftime = {$plugin.powermail.format.date}
			}
			
			datetime = TEXT
			datetime {
				field = datetime
				strftime = {$plugin.powermail.format.datetime}
			}

			# Example to manipulate field with uid 999
#			uid999 = TEXT
#			uid999.field = uid999
#			uid999.wrap = <b>|</b>
		}
		
		# Manipulation of values for email to sender (confirmation mail)
		mandatory {
			# manipulate values related to its fieldtype (text, textarea, select, check, radio, date, etc...)
			date = TEXT
			date {
				field = date
				strftime = {$plugin.powermail.format.date}
			}
		
			datetime = TEXT
			datetime {
				field = datetime
				strftime = {$plugin.powermail.format.datetime}
			}

sieht das bei dir im ts powermail_setup auch so aus?

ausserdem sollte es im powermail_const.ts so aussehen:

	format.datetime = %Y-%m-%d %H:%M

	
	format.date = %Y-%m-%d
profimong ·

Hallo,

danke für Deine Hilfe. Das einzige was ich an TS für Powermail habe befindet sich bei mir im PageSetup und ist

#POWERMAIL DEUTSCHES DATUM
plugin.powermail {
	clear.session = 1
	format.datetime = %d.%m.%Y %H:%M
        format.date = %d.%m.%Y
}

Wo muß ich denn die von Dir gepostenten Sachen reinschreiben bzw wo finde ich das um es mit Deinem Cod zu vergleichen.

Danke:o

profimong ·

Hallo,

ich hab´s teilweise.#angry#
Habe im Konstanteneditor das falsche Format drin gehabt. Jetzt wird das Datum deutsch angezeigt. Allerdings besteht immer noch der Fehler, dass das Datum um einen Tag zurück gesetzt wird. ??

Kennt jemand eine Lösung

Testpagetester ·

ich weiss nicht wie es bei dir aussieht aber bei mir ist es: /fileadmin/templates/ts/extensions

fals es den pfad ei dir nicht gibt kuck mal unter /templates/ts/extensions

schau mal ob die files da noch richtig sind, lönnt ja sein dass du vlt was dran rumgeschraubt hast? 😉

profimong ·

Nein die hab ich nicht, wie heißen die genau, ich erstell sie mir dann und kopier sie auf den Server wohin dürfte ja egal sein. Aber wie binde ich Sie ein damit Powermail mit ihnen arbeitet?