Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Why?!n Where does this date come from? Not the Database?
Thanks,
Garrett
I'm assuming you're referring to the method umbraco.library.CurrentDate()
This method looks at the system date of the machine, using DateTime.Now:
public static string CurrentDate() { return DateTime.Now.ToString("s"); }
Is the clock correct on the machine? Can you try invoking DateTime.Now yourself and comparing the results
That's the thing-- the date is correct on my machine. And no matter what the date IS, this method returns February 26, 2009. It's bizarre.
Perhaps you could show the code you're using to display that result.
Thanks
Yeah your code would be useful. And did you try your own insertion of DateTime.Now?
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
CurrentDate() Returning February 26, 2009
Why?!n Where does this date come from? Not the Database?
Thanks,
Garrett
I'm assuming you're referring to the method umbraco.library.CurrentDate()
This method looks at the system date of the machine, using DateTime.Now:
Is the clock correct on the machine? Can you try invoking DateTime.Now yourself and comparing the results
That's the thing-- the date is correct on my machine. And no matter what the date IS, this method returns February 26, 2009. It's bizarre.
Perhaps you could show the code you're using to display that result.
Thanks
Yeah your code would be useful. And did you try your own insertion of DateTime.Now?
is working on a reply...