-
AuthorPosts
-
April 23, 2007 at 11:41 pm #119870
I have changed the locale in this case UTC + 10, but the Day on the template shows it is Monday when in fact its Tuesday – The problem resolves in the afternoon, so I’m 12 hours out. Any suggestions welcome.
April 23, 2007 at 11:59 pm #218765Can you please tell me how to change the time? Need to get other timezone than server..
May 21, 2007 at 12:02 am #220506yes I have this prob too…….how come no replies
Khanh Le ModeratorKhanh Le
- Join date:
- November 2013
- Posts:
- 1884
- Downloads:
- 41
- Uploads:
- 31
- Thanks:
- 44
- Thanked:
- 203 times in 131 posts
June 6, 2007 at 7:25 am #221574The solutions for changing the date here: http://www.joomlart.com/forums/topic/changing-the-date/
square Friendsquare
- Join date:
- December 2006
- Posts:
- 8
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 5
- Thanked:
- 1 times in 1 posts
June 6, 2007 at 12:01 pm #221584I have the same problem. Changed locale to UTC +12, which is reporting fine under Joomla, but in Teline’s ja-day section having tinkered around a little, I’m getting a MDT (-6) instead!?
Help?
The thread Khanh Le talks of doesn’t actually answer this question.
square Friendsquare
- Join date:
- December 2006
- Posts:
- 8
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 5
- Thanked:
- 1 times in 1 posts
June 6, 2007 at 12:14 pm #221587<em>@square 17469 wrote:</em><blockquote>I have the same problem. Changed locale to UTC +12, which is reporting fine under Joomla, but in Teline’s ja-day section having tinkered around a little, I’m getting a MDT (-6) instead!?
Help?
The thread Khanh Le talks of doesn’t actually answer this question.</blockquote>
I think I solved it.Adding:
putenv(“TZ=Pacific/Auckland”);
seems to change it to +12 quite well.
So the code now reads:
<div class=”ja-day”>
<?php
putenv(“TZ=Pacific/Auckland”);
echo “<span>”.date (‘l’).”</span>”;
echo ” <div>”.date (‘M’).” “.date (‘d’).date (‘S’).”</div>”;
?>
</div>Full list of strings are here: http://www.theprojects.org/dev/zone.txt.
1 user says Thank You to square for this useful post
Khanh Le ModeratorKhanh Le
- Join date:
- November 2013
- Posts:
- 1884
- Downloads:
- 41
- Uploads:
- 31
- Thanks:
- 44
- Thanked:
- 203 times in 131 posts
June 7, 2007 at 1:47 am #221620Glad to hear that you solved it and thank you for sharing, square 🙂 .
June 20, 2007 at 12:19 am #222413Thanks square. This really helped! This should be a sticky somewhere because I count about a dozen people who are asking this question in the forum.
Cheers,
Gregsquare Friendsquare
- Join date:
- December 2006
- Posts:
- 8
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 5
- Thanked:
- 1 times in 1 posts
June 20, 2007 at 1:43 am #222423<em>@wbtnz 18604 wrote:</em><blockquote>Thanks square. This really helped! This should be a sticky somewhere because I count about a dozen people who are asking this question in the forum.
Cheers,
Greg</blockquote>Cheers Greg. Quite chuffed that I cracked that nut as I am relatively amateur in coding. Feel free to visit the site that gave me the trouble in the first place: Rogue Magazine. Now I’m having issues with the poll – its returning an “unauthorised message” even though by my checks I have set everything right, live site etc etc.
Argh.
Help?
-
AuthorPosts
This topic contains 9 replies, has 6 voices, and was last updated by square 17 years, 6 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum