rejetto forum
Software => HFS ~ HTTP File Server => Bug reports => Topic started by: r][m on February 24, 2009, 06:34:24 AM
-
Time macro doesn't work in build 225
{.time|ddd, mmm d, yyyy.}
displays "Tue, Feb 24, 2009 " in build 222
-
{.time|ddd, mmm d, yyyy.}
displays "Tue, Feb 24, 2009 " in build 222
Assuming that macro would work shouldn't it be a {.date.} macro instead of time. According to you it displays only a date response in build 222. (nothing to do with time).
-
shouldn't it be a {.date.} macro instead of time.
Thanks for the reply maverick.
I don't see a date macro on the wiki, does it exist?
There is
time | A
returns current time information. The format is specified by optional parameter A. Refer to this page for format syntax. If A is not supplied, value "c" will be used.
Optional parameter when to specify a time other than current.
I know that time macro was modified in 223 and it was noted as broken (and fixed?) in 224,
but it still doesn't work even in 226.
-
Checked into this a little more. No -> date is not a supported macro. Rejetto will have to take a look at this. The supported macro is time (I think it should be date for obvious reasons). Maybe there should be a date and time macro.
Anyway, I confirm that the time macro works in build 222. Doesn't work in 226.
-
thank you for reporting!
fixed in next build.
in the while, the only workaround i know is
{.time|ddd, mmm d, yyyy|when=%now%.}
name:
since it works for both time and date, i called it 'time' in the meaning of 4th coordinate.
date is clearly not better, since you can is it for time of day as well.
you can suggest a better name if you want.
-
Yo tengo un problema con {.time|dddd.}
ya que en español los dias de semana (miércoles y sábado) llevan tilde
y me salen con simbolos, como arreglo esto?
Saludos y gracias de antemano.
kenshicu@gmail.com
-
kenshicu :
Los días que llevan tilde salen correctamente. Posiblemente no tienes configurado el idíoma correcto en tu navegador.
translation: There is no problem in HFS with accentuated (tilde) spanish day-names. Problem seems to be browser configuration.
-
Ya probé con Firefox v3.0.5, Opera v9.64 e Internet Explorer v6
con sus configuraciones por defecto y sigue haciendo lo mismo,
no hay otra forma de obtener esto?,
ya veo que el HFS toma esta fecha del idioma del sistema operativo,
yo tengo Windows XP sp3 en español, tendra esto algo que ver?
-
are you getting the wrong output of 'dddd'?
what's the output you are getting?
-
example
Spanish (Miércoles) as html
leaves mi?rcoles, the same Saturday.
My opinion is that the pascal did not result in é by é
thanks for answering;
-
ah...mmm...ok... i guess it's an encoding problem.
can you tell me if you are using an UTF-8 template?
the default template is.
i think i fixed the problem for the next build.
in the while you should be able to workaround it by using {.convert|ansi|utf-8|{.time|dddd.}.}
let me know if this works.
if it does, it won't in next build because it will be converting automatically. (as it should ;))
-
Y use XPp-SP3 and have no problems using
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
-
is not the default, which is a variation of I
"thunderchicken_of_glory, then publish when finished, and if HTF-8
. Ok already solved the problem with {.convert|ansi|utf-8|{.time|dddd.}.}
thanks, another question can open the source code of the hfs in Borland Delphi7?
-
remember kenshicu that this solution will not work with next beta!
from next beta you will have to change it back to {.time|dddd.} with no {.convert.}
i don't know if it will work fine with delphi7, i use turbo delphi.
turbo delphi is free.
-
ok
muchas gracias ;)
-
I tried the beta # 229 and continues to give me the same problem by putting {.time|dddd.}
I solved with the solution of Bacter "iso-8859-1"
I changed the template for "UTF-8" to "iso-8859-1".
greetings ;)
-
ugh, i'm so sorry kenshicu, i actually forgot to include this fix in #229.
i just dreamed i did. :D
it will be included in #230.
the solution you applied may be ok, you will just have no unicode, but you can revert at any time.