Incorrect Time Being Used by Script

    • 36 posts
    March 9, 2019 8:13 PM EST

    We have discovered that the incorrect time is being used by the script. We have confirmed the server time is correct. PHP default is set to UTC-0. And in general settings, the correct timezone is selected, -6 in our case. However, all database entries are inserted using UTC and not UTC-6. This has caused issues with events. Is anyone aware of something we may be missing? We were unable to find anything in the search.

    • 119 posts
    March 11, 2019 9:30 AM EDT

    You can set the server time "Locale Settings" this should set your server set-off time, which will add a plus or negative hours to your current server time.

     

    Members can set their own time-zone. This should create the time of the New set-off time from the server.

    So for example:

    Server time is: 18:00, Your -6 hours, member +3

     

    Actual current server time is 18:00 -6 = 12:00

    Add member set-off time +3

    So the actual member time will be 15:00


    So if the event is 16:00, the event hasn't started yet

     

    NOTE: The software will write the current time without set-off time to the database and everything is calculated from that time