Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Technical Questions
Message Icon Topic: Accounting for GMT in a CurrentDateTime Post Reply Post New Topic
Author Message
KJourneay
Newbie
Newbie


Joined: 27 Mar 2008
Online Status: Offline
Posts: 1
Quote KJourneay Replybullet Topic: Accounting for GMT in a CurrentDateTime
    Posted: 15 Apr 2008 at 9:56am
Hi,
 
Thanks in advance for any advice. I searched the forums, but I may not have been using the right keywords.
 
I am using this formula to get to turn around time (in seconds) for a work item in our database:
Datediff ("s", {wf_job_events.event_date}, {@CompleteDate})
 
The @CompleteDate formula is:
If IsNull ({work_items.completion_date}) THEN
CurrentDateTime
Else {work_items.completion_date}
 
The business requirement is that we still need to generate a turnaround time for work items that are not complete yet (I end up higlighting the records in red to indicate that the item is still open).
 
Now this works great, unless the workitem is not yet completed.  The formula will generate a date, but CurrentDateTime is based on the PC time, and the time date stamp on the work item is based on GMT.
 
How do I make this formula evaluate CurrentDateTime at the server level?
Or another way to do it is to ask: Can I change CurrentDateTime to be GMT instead?
 
 
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.