You need to Register for free and Login to post a message in the forum.

Forum

Subject: Set Time
Prev Next
You are not authorized to post a reply.

Author Messages
Kaustav
Nuke Master
Nuke Master
Posts:113

22 Oct 2008 6:22 AM  
Hi,
I've used control in my site and I've set the UK time in my site. It shows the Uk time normally but when any user logs in to the site at that time different times are shown.  How can I set the same time for each user.  I know that for each user different time it shows.  Is there any process to make the time same for every user.

I've used the control in the following maner;


Thanks.
Joseph Craig
DNN Creative Staff
Nuke Master V
Nuke Master V
Posts:5354


22 Oct 2008 8:26 AM  
When a user is created, they also can adjust their timezone in the user profile. So, check three things: the server's time, the site's time (an Admin setting) and the user's setting.

When not logged in, the time shown should be the site's setting. When logged in, the time shown should be the user's time zone, assuming that the site's time is correct.

Joe Craig
DNN Creative Support
Subscribe to the website
Mike
Nuke Newbie
Nuke Newbie
Posts:7

24 Oct 2008 9:39 AM  

Actually, my colleague who posted the original message was not quite accurate in what we are trying to achieve.  In fact, we are currently displaying on the site the time from the user profile timezone.

We really want to display the UK time on the site regardless of the timezone of the user.  We cannot use the server time because the site is hosted in Canada.  So, our best option seems to be the 'site' time that you mention, which I believe is the timezone associated with the 'admin' user?

If that is the case, is there a tag we can use so that this time is always displayed, regardless of the timezone of the user?

Joseph Craig
DNN Creative Staff
Nuke Master V
Nuke Master V
Posts:5354


24 Oct 2008 9:46 AM  
I think that you can set the Host time zone to your choice, regardless of the host machine. And you can set the Admin time zone.

I assume (i.e. haven't checked) that new users get either the host or the site time zone. So, you can make the time zone not visible in the profile, so users won't be able to change it.

Joe Craig
DNN Creative Support
Subscribe to the website
Mike
Nuke Newbie
Nuke Newbie
Posts:7

26 Oct 2008 2:44 AM  

I guess that disabling the registree's ability to set the timezone is one option.  However, in the future development of the site we may wish to have their 'real' time available for other purposes.

I would prefer to simply display either the host time or the admin time.  Is this possible?

Joseph Craig
DNN Creative Staff
Nuke Master V
Nuke Master V
Posts:5354


26 Oct 2008 9:09 AM  
If you want to use something like the skin object that shows time, you cant do that as the CURRENTDATE skin object displays objUserTime.CurrentUserTime.

You could easily take this code as a prototype and either modify it to return another time (I'd use an attribute to determine which time is returned) or just create another skin object, CURRENTSERVERTIME or something, to do what you want done.

If you aren't a programmer, this shouldn't cost you much ... it's certainly less than a day's work for someone who knows what they are doing.

Joe Craig
DNN Creative Support
Subscribe to the website
You are not authorized to post a reply.



ActiveForums 3.7

Latest Forum Posts

More AWeber / Dynamic Forms by ollep
Good Sunday Morning to you all.SE Queensland is very calm, a bit overcast, but a very nice Sunday mo...
Query On Dynamic Form Module by prithviraj
The source element with id dnn$ctr407$DynamicForms$imgMove_48b21a63-ca5a-425d-90ca-599a6e7d51e6 does...
RE: Folder permissions by saintX
Thanks for your answer Rashid! May you please kindly let me know - Which folders - AND for whom...
DNN with Javascript Disabled by aptrivedi
Hi All,I have found my self in bit of trouble.As per my application requriement, i need to handle th...
RE: Change Registration Redirect? by ollep
Well, that sounds good Lee.But I just spent $150.00 and a few days learning the Dynamic Forms  - bec...
RE: Folder permissions by Kazi
Hello FW, The easiest way to set permissions is your control panel, Log in to your CP, click on y...
Folder permissions by saintX
Hello, Can I set the folder permissions on the remote server myself using DW or WVD? If possi...
RE: How to do links? by Guy..L
It's really hard to tell quite how awesome DNN Nav v2 is given the documentation and search results ...
Regarding Editor by prithviraj
Pls let me know whar folders we need to upload when we are changing editors. Suppose i have cute edi...
RE: Change Registration Redirect? by leesykes
It would be best to use Dynamic Registration to avoid 2 registrations.With Dynamic Registration you ...
Indexing DNN pages by Google by Jake Vizner
I have two different DNN web sites. Using Google Webmaster Tools I can see the Google indexed 12 out...
Query Regarding RAD EDitor by prithviraj
Hi, I'm using R.A.D editor in my site. At the time of adding images through the editor I'm unabl...
RE: while installing bulk emailer module in my website by jncraig
Yes, this definitely is a file permissions issue. The default ASP.NET worker task needs to have ful...
RE: Background Music by jncraig
That will work.
RE: Auto create pages and content by dhassall
Hi Joe DNN Out of the box version 4.9 Login as Host with Firefox to create and IE8 to monitor, CTR...
RE: while installing bulk emailer module in my website by dub
Agiline, We have seen this problem before. It is caused by the Security on IIS. Please have a loo...
RE: Change Registration Redirect? by ollep
Probably still want to do it with Dynamic Forms now.My reason for changing (except from getting Aweb...
RE: Change Registration Redirect? by ollep
YES!http://www.dnncreative.com/Subscribe/tabid/81/Default.aspx
RE: Change Registration Redirect? by ollep
Yes I noticed that we where talking about 2 different Modules as soon as I dug into the tutorials.Ab...
RE: Change Registration Redirect? by leesykes
If you are check out the links that I have placed in there:http://www.dnncreative.com/Subscribe/tabi...
AppTheory
RSS Feeds