Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...CurrentDate - is what date?CurrentDate - is what date?
Previous
 
Next
New Post
4/11/2006 1:34 PM
 

Another way to handle this problem for the CurrentDate SkinObject is to just use the Date/Time on the user's machine with local javascript.

For those places that we want the server to generate a display in the current date time of the user, it may be possible to just get the current time from the client browser and make the adjustment that way.

 

 


DotNetNuke Modules from Snapsis.com
 
New Post
4/11/2006 1:37 PM
 
Oh, now that's just stupid Why would we want to do it the easiest way? Sheesh!

Michael Flanakin | Microsoft Consulting Services
www.michaelflanakin.com
 
New Post
4/12/2006 2:40 PM
 

Wow, the beast rises again!  Actually, one of the last posts I did as a CT member was to alert the CT on the issue and the fix.  As a side note, javascript solutions will not work in all cases, but the bigger issue to me is that using javascript to take the machine's time still doesn't get us to a solution for providing support for historical references with regard to date/time.  Think of the many times a  record has a date/time associated with it, and how that is being stored.  Just to simplify it by addressing only the 'display of the current date' is less than a solution IMHO.

The fix to the CurrentDate display does help in some ways, so I created a document of how to do it, and mentioned it on the forums.  I even emailed it to several folks, who followed the example in the doc and subsequently thanked me.

Now, I'm still working out the nitty gritty of doing something about the whole date/time issue, but there's just never enough time or dates to get things done the way I'd like.  Family comes first, then Day gigs , and my pet projects like DNN, and sorry but that's just the way it is for me. (And why I had to leave the CT.)

The issues that remain include the general use of date/time information in the core and 3rd party projects.  My feeling is that DNN or any web app with a global community target audience needs to embrace using UTC for storing date/time information.   What we have now is really a confusing array of imcomplete solutions to the accurate storage and display of date/time information.  The many changes coming up for folks in Aus, USA, Canada, and others really pinpoint the need to address the issue, not only for DNN but MS has not done their part in providing any solution.  The registry does not provide much more than a simple display for the current year.  Talk to anyone in AUS about the changes they've had to make regarding the Commonwealth Games, and Summer Time transition dates, and those kind of changes will need to be reversed next year, and you'll see what kinds of issues are being felt.  If you're hosting a AUS client, you should have dealt with the issues as well, but I find many are not keeping up with the registry timezone changes, because they are not part of a regular MS update.  I guess the feeling is if you're not from a particular area where the tz registry entry is changing, you don't need to worry about it.  That is just wrong, especially in our gloabally expanding use of the Internet.

Anyway, just my thoughts, which are not intended to imflame or discount anyone, just trying to get the issue some attention...

 

 
New Post
4/12/2006 2:49 PM
 

 

Maybe I am missing something, but if a user wanted to see historical data with dates in relation to their time zone, why wouldn't their current date/time work as an offset?


DotNetNuke Modules from Snapsis.com
 
New Post
4/12/2006 3:11 PM
 
John, the orignal problem (with respect to this thread) was that the CurrentDate control used in skins isn't coming up with the correct date because the UserTime class doesn't take into account the difference between server and portal time zones. The fix I posted in Gemini solves that immediate issue; however, I noticed that this didn't take Daylight Savings Time (DST) into account, so the time is still off. Phil (iwonder), is referring to this problem. The DST rules change every year... and there are a lot of them. I remember seeing a reply off one of the threads Sebastian mentioned had a few screenfuls of rules. The only way to do it "right" is to put a lot of time and effort into managing it. We can manage time zone differences fairly easily, as you implied; but the task of managing DST is where we fall short.

If you're bored, check out the two links Sebastian posted. They're interesting.

Michael Flanakin | Microsoft Consulting Services
www.michaelflanakin.com
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...CurrentDate - is what date?CurrentDate - is what date?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out