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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T14:49:27+00:00 2026-06-09T14:49:27+00:00

After moving application to new server with updated software (moved from php 5.2.17 ->

  • 0

After moving application to new server with updated software (moved from php 5.2.17 -> 5.3.15, FreeTDS 0.64 -> 0.82)

SELECT GETDATE()

and any other datetime function / column produces something similar to:

2012-06-219 51:527:
// proper time: 2012-08-06 09:33:02

I know I can use convert in select, but there are many stored procedures in DB that I can not change.

I tried to change /etc/locales.conf and setting date format = %Y-%m-%d %H:%M:%S, and using ini_set('mssql.datetimeconvert',1); but freetds seems to ignore it and returns Aug 06 2012 09:33AM

Is there a way to retrieve datetime columns in standard format, without modifying every query?

  • 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-09T14:49:28+00:00Added an answer on June 9, 2026 at 2:49 pm

    I solved this issue in a kind of brute force way – changed date format in all locales in /etc/locales.conf, I don’t know which one worked, but I’m pretty sure that none of them was used as system locale.

    Anyway, using datetimeconvert is not advised, and turned off in some db abstract layer libraries (adodb in this case) so I’m still interested if there is any way to make it display proper date time

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

Sidebar

Related Questions

After moving to the new server, I'm getting plenty of such notifications: A PHP
I'm trying the moving limit after zoom with canvas scale, but new coordinates does
Does anybody have advice on moving a master page from one solution / application
It seems a bunch of my Rspec tests now fail after moving my application
It seems a bunch of my Rspec tests now fail after moving my application
After moving my web site from my local development environment to a shared host
I want to access RegEx results after I am done moving files with this
After deploying WCF server (svc) on my Server, I have got this message when
After a system upgrade i am no longer able to start my tomcat5 server.
We've recently moved our company website to a new host. It is an ASP.NET

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.