Avoiding Date Night Disasters in Oracle APEX: Handling BST and Time Zones Properly
So you’re going on a date. You tell your better half you’ll meet her at the fine dining restaurant at 8 PM. She arrives at 7 PM, waits almost an hour, then leaves — heartbroken, annoyed, and perhaps plotting her revenge. 😬 What went wrong? Simple: You were both in different time zones… metaphorically speaking. But that’s exactly what happens in Oracle APEX when you mishandle dates , particularly when dealing with British Summer Time (BST) and time zone conversions in workflows. The APEX Date-Time Trap Let’s say you capture a date and time from a user using a date picker in an APEX form. You think you’ve got a precise timestamp to use in a workflow or scheduled activity. But then something strange happens — your workflow fires an hour early. Why? The culprit: Time zone confusion Behind the scenes, Oracle APEX stores date and timestamp values using the database session time zone , which is often UTC . If the user selected “8:00 PM BST” on the form, and you didn't properly conver...