Symptom
Crystal Report special field ‘Print Time’ shows time of the Web (Application) Server instead of end-user local time when opened from InfoView.
Reproducing the Issue
- Set the BusinessObjects Enterprise installed Windows Server Time and Date to U.S Timezone.
- Choose a client machine and set its Windows Date and Time to, say, U.K Timezone.
- Login to InfoView from client machine and set Preference 'My current time-zone is U.K’.
- Now open a Crystal Report having the special field ‘Print Time’ from the client machine.
- Observe that the report shows U.S time instead of U.K time
Environment Information
- BusinessObjects Enterprise XI Release 2
- Crystal Reports XI Release 2
Cause
- The behaviour of special field 'Print Date' when a Crystal Report is opened in InfoView is by-design of the product.
- Crystal Reports does not automatically time-shift a field since it does not know the time zone of the data/report. It does not auto-consider the need to shift the time.
Resolution
Workaround Solution:
Crystal Reports does provide a formula function that you can use: "ShiftDateTime". When combined with the special field, CurrentCEUserTimeZone, you can shift the print time of the current user like this:
ShiftDateTime(DateTime(PrintTime), PrintTimeZone, CurrentCEUserTimeZone)
Keywords
KBA , BI-RA-CR , Crystal Reports designer or Business View Manager , How To
Product
Crystal Reports Server XI R2