Skip to content

Commit

Permalink
- Summary: Refactor code (T56690)
Browse files Browse the repository at this point in the history
- Bugzilla Bug(s) Resolved: 

- Description: Refactor code (T56690)
  • Loading branch information
Frank Ding authored and Frank Ding committed Mar 4, 2013
1 parent f0aa5ab commit 0e5fa9b
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,12 @@ public final String getBaseDisplayValue( FormatSpecifier formatSpecifier )

try
{
if ( oBaseValue instanceof CDateTime
&& ( (CDateTime) oBaseValue ).isFullDateTime( )
&& rtc.getTimeZone( ) != null )
{
( (CDateTime) oBaseValue ).setTimeZone( rtc.getTimeZone( ) );
}
return ValueFormatter.format( oBaseValue, fs, rtc.getULocale( ), df );
}
catch ( Exception ex )
Expand Down Expand Up @@ -595,6 +601,12 @@ public final String getOrthogonalDisplayValue( FormatSpecifier formatSpecifier )
}
try
{
if ( oOrthogonalValue instanceof CDateTime
&& ( (CDateTime) oOrthogonalValue ).isFullDateTime( )
&& rtc.getTimeZone( ) != null )
{
( (CDateTime) oOrthogonalValue ).setTimeZone( rtc.getTimeZone( ) );
}
return ValueFormatter.format( oOrthogonalValue,
fs,
rtc.getULocale( ),
Expand Down Expand Up @@ -630,6 +642,12 @@ public final String getSeriesDisplayValue( FormatSpecifier formatSpecifier )
}
try
{
if ( oSeriesValue instanceof CDateTime
&& ( (CDateTime) oSeriesValue ).isFullDateTime( )
&& rtc.getTimeZone( ) != null )
{
( (CDateTime) oSeriesValue ).setTimeZone( rtc.getTimeZone( ) );
}
return ValueFormatter.format( oSeriesValue,
fs,
rtc.getULocale( ),
Expand Down

0 comments on commit 0e5fa9b

Please sign in to comment.