Autor Beitrag
Voxe
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 41

Win XP, Win 7
Delphi 7 prof
BeitragVerfasst: Sa 02.07.11 10:11 
Hallo zusammen,

es ist eine Spielerei, aber es lässt mir keine Ruhe, nutze folgende Funktion in 3 Konfigurationen

FormatDateTime('dddddd hh:mm:ss', now);

1. Win7-Professional, Delphi7-Professional, Systemzeit = deutsch, Ergebnis ist: Wochentag in englisch, warum ???
2. Win-XP, Delphi7-Professional, Systemzeit = deutsch, Ergebnis ist: Wochentag in deutsch, ok
3. Win7-Home Premium, Delphi XE, Systemzeit = deutsch, Ergebnis ist: Wochentag in deutsch, ok


Gruß, Voxe
haentschman
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 285
Erhaltene Danke: 33


DX10 Berlin Professional
BeitragVerfasst: Sa 02.07.11 10:28 
Es könnte eine Lösung sein...
Stelle mal im W7 Professionell die Ländereinstellungen auf Englisch + Ok und dann auf Deutsch zurück. Es könnte mit dem allseits bekannten Bug zu tun haben.
www.delphipraxis.net...es-datumsformat.html
oder die andere Variante
www.delphipraxis.net...sche-wochentage.html
:wave:
Voxe Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 41

Win XP, Win 7
Delphi 7 prof
BeitragVerfasst: Sa 02.07.11 10:46 
Danke für die Antwort und die Links, werde es gleich Montag probieren, da WE ist.

Es ist kein wirkliches Problem für mich, habe mich nur gewundert :eyecrazy:

Gruß
haentschman
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 285
Erhaltene Danke: 33


DX10 Berlin Professional
BeitragVerfasst: Sa 02.07.11 10:55 
Ich hab nochmal den zweiten Link bis zu Ende gelesen...
Beitrag #25 spricht von der Lösung. Wie vermutet liegt es an den Ländereinstellungen. Probiers aus... :wave:
Voxe Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 41

Win XP, Win 7
Delphi 7 prof
BeitragVerfasst: Sa 02.07.11 11:40 
Habe das auch noch einmal gelesen.

Aber, der Win7-Prof PC, sollte mein Entwicklungsrechner sein. Heisst, dort wurde die Zeile compiliert, habe allerdings die 3 Versuche auf den jeweiligen Rechnern compiliert.

Gruß Voxe

PS: für alle die das Lesen, sowas, macht man nicht, ist nur aufgefallen.
colaka
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 200
Erhaltene Danke: 4

Win XP, W7
Delphi 2005 Prof.
BeitragVerfasst: Sa 02.07.11 17:00 
Hallo,

wenn Du den Wochentag unabhängig von den Systemeinstellungen darstellen möchtest, mußt Du ihn über die Funktion DayOfWeek ermitteln:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
  case DayofWeek(Date) of
    1 : Wochentag := 'Sonntag';
    2 : Wochentag := 'Montag';
    3 : Wochentag := 'Dienstag';
    4 : Wochentag := 'Mittwoch';
    5 : Wochentag := 'Donnerstag';
    6 : Wochentag := 'Freitag';
    7 : Wochentag := 'Samstag';
  end;


Gruß Ebi
indianer
Hält's aus hier
Beiträge: 8



BeitragVerfasst: So 03.07.11 00:08 
Ich habe ein Programm, damals mit Delphi 4 geschrieben, kein Code mehr vorhanden.
Unter Win 95 bis Vista deutsche Datumsnamen, unter "Win 7 Home Premium" von Medion
englische Namen.
Den Tipp vom ersten Link Nr. 13 ausgeführt und Neustart, jetzt deutsche Namen.