View Issue Details

IDProjectCategoryView StatusLast Update
0005472JEDI VCL00 JVCL Componentspublic2011-09-21 14:10
ReporterstevegrAssigned Toobones 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.40 
Target VersionFixed in Version3.45 
Summary0005472: TJvTFDays.GetMinorLabel
DescriptionTJvTFDays.GetMinorLabel method,

TimeAMString and TimePMString should be used instead of 'am' and 'pm' respectively to work with different locates.
Additional Information  if (FancyRowHdrAttr.OnlyShow00Minutes and (ExtractMins(RowTime) = 0)) or
    (not FancyRowHdrAttr.OnlyShow00Minutes) then
  begin
    if (not FancyRowHdrAttr.Hr2400) and (Granularity < 60) then
    begin
      // Get the first row with a 00 hour
      FirstHourRow := TopRow;
      while (FirstHourRow < BottomRow) and (ExtractMins(RowToTime(FirstHourRow)) <> 0) do
        Inc(FirstHourRow);
      if RowTime = 0 then
        Result := TimeAMString
      else
      if RowTime = 0.50 then
        Result := TimePMString
      else
      if (RowNum = FirstHourRow) and (ExtractMins(RowTime) = 0) then
      begin
        if RowTime < 0.50 then
                    Result := TimeAMString
        else
          Result := TimePMString;
      end
      else
        Result := FormatDateTime(TimeFmt, RowTime);
    end
    else
      Result := FormatDateTime(TimeFmt, RowTime);
  end
  else
    Result := '';
TagsNo tags attached.

Relationships

related to 0005462 resolvedobones TJvTFDays does not allow for european time display. 

Activities

obones

2011-02-15 13:51

administrator   ~0018358

Please provide the zipped sources of a sample application showing this.

2011-02-15 14:40

 

feedback.7z (68,651 bytes)

stevegr

2011-02-15 14:46

reporter   ~0018366

Action:
Replace hard-coded 'am' and 'pm' strings with TimeAMString and TimePMString in JvTFDays.GetMinorLabel to work correctly with other locales.

Lines:
6795
6798
6803
6805

obones

2011-06-08 13:46

administrator   ~0018662

This is now fixed in SVN

Issue History

Date Modified Username Field Change
2011-01-31 16:36 stevegr New Issue
2011-02-15 13:51 obones Note Added: 0018358
2011-02-15 13:51 obones Status new => feedback
2011-02-15 14:40 stevegr File Added: feedback.7z
2011-02-15 14:46 stevegr Note Added: 0018366
2011-02-15 14:47 obones Status feedback => acknowledged
2011-06-08 13:46 obones Note Added: 0018662
2011-06-08 13:46 obones Status acknowledged => resolved
2011-06-08 13:46 obones Fixed in Version => Daily / SVN
2011-06-08 13:46 obones Resolution open => fixed
2011-06-08 13:46 obones Assigned To => obones
2011-09-21 14:10 obones Fixed in Version Daily / SVN => 3.45
2012-02-28 09:04 obones Relationship added related to 0005462