Home | About | Amazon Store | Briefing | Investing | Links | Site Search | USX China | Login | Register

RSS Feed for This PostCurrent Article

Can not get the time right

There is an old saying “one can not teach old dog new tricks”. This exactly applied to me, I am talking about programming for my blog. More accurately, I could not get the time of this blog correct.

This blog is hosted in a hosting company at Utah (US Mountain time), and I normally live in St. Louis (US central time), that’s one hour difference from Utah. Also from time to time I visit Shanghai (Beijing time), which is 13 or 14 hours ahead of St. Louis depends on the daylight saving setting.

I used the PHP date function to get the time currently. It does it supposed to do: get the time from the server (mountain time). But I don’t know how can I adjust the time zone after that. It seems an easy problem, but after spending several hours on it, hit my head agains the wall, still could not get it solved. This is just a small problem I have with my blog. I have a long way to go if I really want to learn the PHP and other the web programming stuff.

I remember an old saying in Chinese 隔行如隔山, or put it in English “there is a mountain (of difference) in different trades or jobs”. I think I can appreciate it now.

Trackback URL

EMail This Post

Bookmark

Save to del.icio.us

Ads

Google
 
Web www.stlplace.com

RSS Feed for This PostPost a Comment

// 最新推荐 Noteworthy
  • Buffett NY Times op-ed 10/17/2008: Buy American. I Am.
  • Buffett article Fortune 11/10/2001: Stock Market: What's in the future for investors
  • Amazon Prime: Free trial
  • Berkshire 08 Meeting Q&A Transcript: html (GuruFocus), PDF
  • blog

  • China

  • finance

  • Links

  • Major

  • Pro (for ref only)

  • Saint Louis

  • Shanghai

  • Meta

  • Author作者

    "古人云,人不自信谁人信之." Others won't believe in you unless you believe yourself. --Chinese proverb

    Hello, world :-) I am not another stock expert. I am an ordinary guy who believes: by lifetime learning, indepenent analysis and disciplined investing, little guys can achieve great return.

    I grew up in China and currently working on CFA level I this June. Here I'm blogging about business, finance, stocks, other fun stuffs in the US and China. Comments and Email are welcome.

  • Disclaimer声明

    See Disclaimer Page
  • Valid XHTML 1.0 Transitional