Answers.Body: <p>Judging from this issue: <a href="https://lab.civicrm.org/dev/core/-/issues/2122#note_68300" rel="nofollow noreferrer">https://lab.civicrm.org/dev/core/-/issues/2122#note_68300</a>
  I think you are correct that it's a timezone issue.</p>
  <p>Specifically, date/times in civievent do not include timezones (an old design flaw!), so many calculations involving date/times will use an implicit timezone from mysql or php (both of which can be confusingly different from each other and the 'server' timezone).</p>
  <p>You could try fixing it with a configuration in your mysql ini file to set a timezone, but that might generate new confusion.</p>
  <p>What you're seeing in Drupal where it &quot;knows&quot; your timezone adds an extra layer of confusion, TBH ...</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-01-11T19:37:38.203Z
Answers.LastActivityDate: 2022-01-11T19:37:38.203Z
Answers.UserDisplayName: Alan Dixon
Body: <p>We have a lot of users who register at the very last minute.  Often, when they try to register for an event on the day of the event, but before the event has started, CiviCRM tells them registration is closed.</p>
  <p>I'm surprised that by default registration closes for an event before the event starts.  Surely the default is that you can register for an event right up to the configured start time?</p>
  <p>I was wondering if this might be due to a time zone issue on the server. Is there a right way to set the date on the server side?  It is currently 6:40 pm Pacific where our organization is.  If I do a <code>date</code> command on our server, I get: <code>Tue Jan 11 02:40:02 UTC 2022</code>.</p>
  <p>I don't see anywhere in CiviCRM administration screens that I can see what it thinks the current date/time is.  Is there such a place?</p>
  <p>If I look in Drupal's status report, I see this:
  <code>The timezone has been set to America/Vancouver.</code> and if I go to Drupal's <code>/admin/config/regional/settings</code> configuration I do see that it says the current date and time in our office's location.  And if I look at Drupal recent log messages, it lists a log message with a date/time within 1 minute of the current time.</p>
  <p>So that all indicates to me that Drupal (and I presume Civi) knows the correct date &amp; time at our office.</p>
  <p>So then why can't a user register for an event on the day of the event but an hour or two before it has started?</p>
  <p>(I know I can fix this by just setting the &quot;Registration End Date&quot; field in the Online Registration tab to the day after the event starts, for example, but this is annoying to have to set for every event, I often forget to set it right, and it just &quot;feels wrong&quot; that this should be happening.)</p>
  <p>Thank you!</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-01-11T03:10:51.763Z
Comments.Text: I am surprised to hear that is the default have Registration Start/End Date fields, which are not auto-filled, therefore my expectation is that without values in there, registration will be available up to the start time of the event, but if these are used, then presumably the Time field needs data to correct timing. unless this is an issue of folk in different timezones have different experiences?
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-01-11T04:51:52.430Z
Comments.Text: Yea, we don't ever have the Registration Start/End date fields filled in. A few times folks have done it and then I seem to remember it being difficult to remove it. So we would just set it for the next day and then go in and change it once registration should actually be closed.
Comments.UserDisplayName: Jenni Simonis
Tags: <civievent><online-registration>
Title: Users can't register for events on day of -- why?
ThreadText: # Users can't register for events on day of -- why?
  
  (Asked by: username_0 on 2022-01-11)
  
  We have a lot of users who register at the very last minute. Often, when they try to register for an event on the day of the event, but before the event has started, CiviCRM tells them registration is closed.
  
  I'm surprised that by default registration closes for an event before the event starts. Surely the default is that you can register for an event right up to the configured start time?
  
  I was wondering if this might be due to a time zone issue on the server. Is there a right way to set the date on the server side? It is currently 6:40 pm Pacific where our organization is. If I do a `date` command on our server, I get: `Tue Jan 11 02:40:02 UTC 2022`.
  
  I don't see anywhere in CiviCRM administration screens that I can see what it thinks the current date/time is. Is there such a place?
  
  If I look in Drupal's status report, I see this:
  `The timezone has been set to America/Vancouver.` and if I go to Drupal's `/admin/config/regional/settings` configuration I do see that it says the current date and time in our office's location. And if I look at Drupal recent log messages, it lists a log message with a date/time within 1 minute of the current time.
  
  So that all indicates to me that Drupal (and I presume Civi) knows the correct date & time at our office.
  
  So then why can't a user register for an event on the day of the event but an hour or two before it has started?
  
  (I know I can fix this by just setting the "Registration End Date" field in the Online Registration tab to the day after the event starts, for example, but this is annoying to have to set for every event, I often forget to set it right, and it just "feels wrong" that this should be happening.)
  
  Thank you!
  
  **Tags:** civievent, online-registration
  
  > **Comments:**
  > **username_1**: I am surprised to hear that is the default have Registration Start/End Date fields, which are not auto-filled, therefore my expectation is that without values in there, registration will be available up to the start time of the event, but if these are used, then presumably the Time field needs data to correct timing. unless this is an issue of folk in different timezones have different experiences?  
  > **username_2**: Yea, we don't ever have the Registration Start/End date fields filled in. A few times folks have done it and then I seem to remember it being difficult to remove it. So we would just set it for the next day and then go in and change it once registration should actually be closed.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_3 on 2022-01-11. Score: 1 | Accepted answer
  
  Judging from this issue: <https://lab.civicrm.org/dev/core/-/issues/2122#note_68300>
  I think you are correct that it's a timezone issue.
  
  Specifically, date/times in civievent do not include timezones (an old design flaw!), so many calculations involving date/times will use an implicit timezone from mysql or php (both of which can be confusingly different from each other and the 'server' timezone).
  
  You could try fixing it with a configuration in your mysql ini file to set a timezone, but that might generate new confusion.
  
  What you're seeing in Drupal where it "knows" your timezone adds an extra layer of confusion, TBH ...
  
  
  ---
  
  