Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8957333
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T14:57:58+00:00 2026-06-15T14:57:58+00:00

When a user signs up for my site they enter their weekly availability in

  • 0

When a user signs up for my site they enter their weekly availability in this format:

Monday 1300 to 1400
Monday 2100 to 2200

Tuesday 1200 to 1300
Tuesday 1400 to 1500

Etc.

They also indicate their timezone based on a select menu, such as America/Los_Angeles.

What I want to happen is for those times to be adjusted based on the timezones of users that visit their profiles who have different timezones set. What is the best solution for this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T14:57:59+00:00Added an answer on June 15, 2026 at 2:57 pm

    I actually ended up doing this:

    <?php while ($ava = mysql_fetch_array($avail_action)) { 
        date_default_timezone_set($profile_owners_timezone);
        $timestamp_from = strtotime($ava['time_from']);
        $timestamp_to = strtotime($ava['time_to']);
    
                date_default_timezone_set($_SESSION['timezone']);
        $time_from = date("g:i A", $timestamp_from);
        $time_to = date("g:i A", $timestamp_to); ?>
    

    Basically I got the profile “owner’s” timezone that he/she entered, set timezone to that, then set the timezone to “viewer’s” timezone and set the variable to that.

    Thanks all for the help!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

user signs up for a key and secret from my site, then they can
I'm trying to save the site that a user came from when they sign
When a user signs up on my site I want to be able to
Each time my user signs in, we pull his profile picture from Facebook. This
Whenever a new user signs up on my site, I want to do some
I am building a web site where the user has to digitally sign a
After a user signs in and his password is verified, I need to store
I'm wondering how i would go about making the following application: a user signs
I'm building a website with ASP.NET MVC3. When a user signs in, I pull
I am overriding sessionscontroller because I need a special behavior. When the user signs

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.