Author |
Topic |
Andy Humm
Average Member
United Kingdom
908 Posts |
Posted - 04 November 2008 : 12:40:17
|
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.< |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 04 November 2008 : 12:48:22
|
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 |
|
|
Andy Humm
Average Member
United Kingdom
908 Posts |
Posted - 05 November 2008 : 18:14:03
|
"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.< |
|
|
Andy Humm
Average Member
United Kingdom
908 Posts |
Posted - 05 November 2008 : 18:17:36
|
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< |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 06 November 2008 : 01:59:16
|
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 |
|
|
cripto9t
Average Member
USA
881 Posts |
Posted - 06 November 2008 : 14:12:18
|
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 |
|
|
Andy Humm
Average Member
United Kingdom
908 Posts |
Posted - 07 November 2008 : 06:14:49
|
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..< |
|
|
Feral
Starting Member
2 Posts |
Posted - 03 July 2009 : 04:32:04
|
Much appreciated cripto9t :-) |
|
|
Topic |
|