Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Date Format mm/dd/yyyy to dd/mm/yyyy
 New Topic  Topic Locked
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

Andy Humm
Average Member

United Kingdom
908 Posts

Posted - 04 November 2008 :  12:40:17  Show Profile
Huwr as a general question - you state that "it is nothing to do with the lcid being 1033" and as you have mentioned before that the sidenote in config.asp says do not edit etc... Why when changing (temporarily) the LCID to 2057 the date display works ok for UK settings and I notice the date stored in the db is different from 1033 status.

You may recall, we experienced a date problem saga the Greetings Card Mod and I tried a tempoarty diagnosis, on advise from Shaggy, to set the LCID to 2057 UK
This seemed to resolve the problems until we used the dateadd database funcions.

Knowing that this Events Calendar mod has various different ways of the date being displayed, my aim is to ensure commonality across the forum and events mod, especially using the chkdate/strtodate/datetostr functions. At the moment I have not been able to achieve this. Just cutting and pasting a couple of the date displays in the events calendar : Tuesday, November 04, 2008, 04 November 2008, 11/04/2008, November 4 as example. I have resolved most of the day/weekly/month/year iew date formats its just the input field by the datepicker that needs rework.<
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 04 November 2008 :  12:48:22  Show Profile  Visit HuwR's Homepage
yes, but that is why you SHOULD NOT change the LCID, if you do you will break ALL the forum date functions since they expect the string in the db to be a specific format.

so FIX THE MOD CODE it is that that is wrong not the forum.<

MVC .net dev/test site | MVC .net running on Raspberry Pi
Go to Top of Page

Andy Humm
Average Member

United Kingdom
908 Posts

Posted - 05 November 2008 :  18:14:03  Show Profile
"so FIX THE MOD CODE it is that that is wrong not the forum" - Huwr, that is exactly what I have set out to do, bring the mod code inline with the forum date functionality, not only with this mod, others too.<
Go to Top of Page

Andy Humm
Average Member

United Kingdom
908 Posts

Posted - 05 November 2008 :  18:17:36  Show Profile
Further to above, is there any guide lines to what date format does what ie where each should be used - chkdate/strtodate/datetostr etc.. Thank you in advance - andy<
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 06 November 2008 :  01:59:16  Show Profile  Visit HuwR's Homepage
chkdate just displays the date. strtodate converts the string 'yyyymmddhhmm' to a datetime and datetostr converts the datetime to a 'yyyymmddhhmm' format string. changing LCID to any value other then it's default will break datetostr and strtodate and probably chkdate too<

MVC .net dev/test site | MVC .net running on Raspberry Pi
Go to Top of Page

cripto9t
Average Member

USA
881 Posts

Posted - 06 November 2008 :  14:12:18  Show Profile
I got alot of it working with the forum date functions.
It was easier than it looked. I didn't touch the topic part because of the way its displayed.

Just replace your files with the ones in the zip. Make backup files first!

Click Here

If you see something I missed, let me know, I'll give it a look.<

    _-/Cripto9t\-_

Edited by - cripto9t on 06 November 2008 14:12:56
Go to Top of Page

Andy Humm
Average Member

United Kingdom
908 Posts

Posted - 07 November 2008 :  06:14:49  Show Profile
cripto9t, thank you for the amended files I have added the alterations to my files and 'hey presto', we have all the dates in the calendar mod corresponding with the forum date config settings and the lcid is 1033. Thanks all once again, hopefully with the advise on this thread I can use it to ensure other date problems align with forum settings, if we come across them that is..<
Go to Top of Page

Feral
Starting Member

2 Posts

Posted - 03 July 2009 :  04:32:04  Show Profile
Much appreciated cripto9t :-)
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Previous Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.55 seconds. Powered By: Snitz Forums 2000 Version 3.4.07