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

  • Home
  • SEARCH
  • 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 3407130
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T05:42:47+00:00 2026-05-18T05:42:47+00:00

i am storing member’s created date using the time() function, and echo them back

  • 0

i am storing member’s created date using the time() function, and echo them back using strftime() and the date() function, but it doesnt display the right time information

my code is :

date("d-m-Y H:i:s", $member->created)
strftime("%Y-%m-%d",$member->created)

it should have displayed this:

17-11-2010 14:42

rather than:

17-11-2010 23:45

now, i have change my php.ini date.timezone configuration into my current time zone which is “Asia/Jakarta”, yet nothing change. i have also try to set them manually inside my code using

date_default_timezone_set("Asia/Jakarta");

what did i miss ? please help me

Regards

EDIT:

according to Noodles, i need to check the server’s clock setting, so i did using the
hwclock command, and it turns out that the clock setting is not right, since it displayed

Thu 18 Nov 2010 02:07:25 AM WIT  -0.931691 seconds

while it should have been

Wed 17 Nov 2010 05:04:ss PM

now, how can i syncronize this setting into my timezone ??

Edit: i have manage to change the clock setting using

date -s "HH:MM:SS"
hwclock --systohc

thanks for pointing me out Noodles

case is closed i guess 😀

thanks again guys

  • 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-05-18T05:42:47+00:00Added an answer on May 18, 2026 at 5:42 am

    Are you sure your server’s clock is set correctly? It would seem weird that the minutes would change. At the most I’d expect the hours to change if it was a different time zone, but not minutes.

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

Sidebar

Related Questions

I'm trying to write a function that formats every (string) member/variable in an object,
I have a very simple class with only one field member (e.g. String). Is
I am storing a PNG as an embedded resource in an assembly. From within
I plan to be storing all my config settings in my application's app.config section
I'm storing a Word document in a SQL Server 2005 database in a varbinary(max)
We are currently storing plain text passwords for a web app that we have.
We're storing some Guid's in a MS SQL database. There's some legacy code that
I'm storing an object ( TTF_Font ) in a shared_ptr that is provided to
I'm storing an ArrayList of Ids in a processing script that I want to
I am currently storing many different types of objects in the ASP.NET HttpRuntime.Cache and

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.