![]() |
Local time in postbit
In vbulletin 3 I had the user's local time in the post bit and was using this:
GMT+$post[timezoneoffset] I tried getting this to work in vbulletin 4 but not having much luck. If I do {vb:raw $post[timezoneoffset]} I get a value but am not sure how to get the current time to add that value to. Also not sure about DST. Is the user's local time a variable I can simply use for this purpose? Thanks |
What *exactly* are you using in the postbit? You didn't actually write "GMT+$post[timezoneoffset]", so tell us exactly what you used to do and exactly what you have tried to do in vB4.
|
<a href="https://vborg.vbsupport.ru/showthread.php?t=243379" target="_blank">User's Local Time and Date in Postbit and Profile for vB 4</a>
|
It was based on a custom field that would show an image of the user's country flag and on hover would show the country name and the user's local time. This is what I had in postbit_legacy for 3.5.
Code:
<div class="smallfont"> --------------- Added [DATE]1374823196[/DATE] at [TIME]1374823196[/TIME] --------------- {vb:raw post.localtime} seems to do what I want. |
All times are GMT. The time now is 12:16 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|