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 6704293
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:16:18+00:00 2026-05-26T07:16:18+00:00

Under my debugger: logging.info(TZ = %s — It is now: %s, os.environ[‘TZ’], time.ctime()) TZ

  • 0

Under my debugger:

logging.info("TZ = %s -- It is now: %s", os.environ['TZ'], time.ctime())
TZ = UTC -- It is now: Mon Oct 17 12:10:44 2011

Under App Engine Launcher:

logging.info("TZ = %s -- It is now: %s", os.environ['TZ'], time.ctime())
TZ = UTC -- It is now: Mon Oct 17 17:09:24 2011

So what do I have setup wrong? This affects not just time.ctime(), but all the data dropped into the debug database. I’d like the debugger to run in the same “timeframe” as the app engine launcher because of timestamps in the database, and the debugger is slower than the launcher, so I don’t want to use it all the time.

  • 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-26T07:16:19+00:00Added an answer on May 26, 2026 at 7:16 am

    The issue is that the C runtime functions on Windows with Python 2.5 seem to cache the value of the TZ environment variable the first time either time or ctime is called. The following will display the time in local time and not in UTC:

    import time, os
    time.time()
    os.environ['TZ'] = 'UTC'
    print time.ctime()
    

    Wing’s debugger calls time() before running any AppEngine code so the initial value of TZ was captured. The workaround is to set TZ=UTC in the environment variables via the project properties dialog.

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

Sidebar

Related Questions

I'm having problem with JavaScript debugger under project that uses dojo.require() to load JavaScript
I'm working on a little debugger under Linux 64bits and I'm having trouble looking
When I'm at a breakpoint in my Java app under Eclipse debugger, I click
How do I detect in my program that it's being run under a debugger?
I'm having an odd problem with my vs debugger. When running my program under
I am not interested in logging into frameworks or under the covers but only
kill quit The Debugger has exited with status 0. [Session started at 2011-03-18 14:27:30
Whenever I run my application under the debugger, I get the following exception when
In several places in our code, we notice that if running under debugger it'll
I need to disable some code when run under the debugger. So, I just

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.