Click here to Skip to main content
16,008,490 members

Bugs and Suggestions

   

General discussions, site bug reports and suggestions about the site.

For general questions check out the CodeProject FAQs. To report spam and abuse Head to the Spam and abuse watch. If you wish to report a bug privately, especially those related to security, please email webmaster@codeproject.com

 
GeneralSubmitting a new article Pin
Mitch F.30-Mar-05 10:49
Mitch F.30-Mar-05 10:49 
GeneralRe: Submitting a new article Pin
Chris Maunder30-Mar-05 11:23
cofounderChris Maunder30-Mar-05 11:23 
GeneralRe: Submitting a new article Pin
Colin Angus Mackay30-Mar-05 13:02
Colin Angus Mackay30-Mar-05 13:02 
GeneralArticle search needs help Pin
WarChildWTS27-Mar-05 6:35
WarChildWTS27-Mar-05 6:35 
GeneralRe: Article search needs help Pin
Chris Maunder31-Mar-05 3:40
cofounderChris Maunder31-Mar-05 3:40 
GeneralTime Pin
Max Santos25-Mar-05 3:54
Max Santos25-Mar-05 3:54 
GeneralRe: Time Pin
PJ Arends25-Mar-05 7:25
professionalPJ Arends25-Mar-05 7:25 
GeneralRe: Time Pin
Max Santos25-Mar-05 10:06
Max Santos25-Mar-05 10:06 
OK then... here it is:

<br />
function ConvertTZ(msgDate)<br />
{<br />
	date = new Date(msgDate);<br />
		date.setHours(date.getHours()-serverTZ+userTZ); //the convertion<br />
		<br />
		d = date.getDate();<br />
		m = (date.getMonth()+1);<br />
		h = date.getHours();<br />
		m = date.getMinutes();<br />
		<br />
		sDate = ((h<10)?"0"+h:h)+":"+((m<10)?"0"+m:m)+" "+((d<10)?"0"+d:d)+"-"+((m<10)?"0"+m:m)+"-"+date.getFullYear();	<br />
		document.write(sDate);<br />
	}


and this can be called like this

<td><br />
	<script>ConvertTZ("<%=Now%>")</script><br />
</td>


it can be tested here : http://xwega.com/codeproject/timezone.asp[^]

will Chris see this post? Big Grin | :-D
GeneralRe: Time Pin
DavidNohejl25-Mar-05 10:57
DavidNohejl25-Mar-05 10:57 
GeneralRe: Time [edited] Pin
PJ Arends25-Mar-05 12:15
professionalPJ Arends25-Mar-05 12:15 
GeneralCorrection Pin
Max Santos25-Mar-05 13:26
Max Santos25-Mar-05 13:26 
GeneralDone the easy way! Pin
Max Santos25-Mar-05 14:21
Max Santos25-Mar-05 14:21 
GeneralRe: Done the easy way! Pin
PJ Arends25-Mar-05 16:56
professionalPJ Arends25-Mar-05 16:56 
GeneralRe: Done the easy way! Pin
Nish Nishant26-Mar-05 16:40
sitebuilderNish Nishant26-Mar-05 16:40 
GeneralRe: Done the easy way! Pin
Max Santos27-Mar-05 5:45
Max Santos27-Mar-05 5:45 
GeneralRe: Time Pin
Michael Dunn25-Mar-05 15:39
sitebuilderMichael Dunn25-Mar-05 15:39 
GeneralRe: Time Pin
Max Santos25-Mar-05 15:41
Max Santos25-Mar-05 15:41 
GeneralRe: Time Pin
Chris Maunder31-Mar-05 3:47
cofounderChris Maunder31-Mar-05 3:47 
GeneralRe: Time Pin
Max Santos31-Mar-05 8:41
Max Santos31-Mar-05 8:41 
GeneralRe: Time Pin
Alexander M.,31-Mar-05 12:32
Alexander M.,31-Mar-05 12:32 
GeneralCurrently Online Pin
John L. DeVito17-Mar-05 15:31
professionalJohn L. DeVito17-Mar-05 15:31 
GeneralRe: Currently Online Pin
Alexander M.,31-Mar-05 12:29
Alexander M.,31-Mar-05 12:29 
GeneralI want merchandise! Pin
charlieg15-Mar-05 6:18
charlieg15-Mar-05 6:18 
GeneralRe: I want merchandise! Pin
Michael P Butler15-Mar-05 6:29
Michael P Butler15-Mar-05 6:29 
GeneralRe: I want merchandise! Pin
charlieg15-Mar-05 6:51
charlieg15-Mar-05 6:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.