rejetto forum

Time macro

r][m · 17 · 10603

0 Members and 1 Guest are viewing this topic.

Offline r][m

  • Tireless poster
  • ****
    • Posts: 347
    • View Profile
Time macro doesn't work in build 225

Quote
{.time|ddd, mmm d, yyyy.}
displays "Tue, Feb 24, 2009 " in build 222


Offline maverick

  • Tireless poster
  • ****
    • Posts: 1052
  • Computer Solutions
    • View Profile
Quote
{.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).
maverick


Offline r][m

  • Tireless poster
  • ****
    • Posts: 347
    • View Profile
Quote
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
Quote
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.



Offline maverick

  • Tireless poster
  • ****
    • Posts: 1052
  • Computer Solutions
    • View Profile

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.
maverick


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
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.


Offline kenshicu

  • Occasional poster
  • *
    • Posts: 16
    • View Profile
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


Offline bacter

  • Operator
  • Tireless poster
  • *****
    • Posts: 681
    • View Profile
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.
your computer has no brain - use your own !


Offline kenshicu

  • Occasional poster
  • *
    • Posts: 16
    • View Profile
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?


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
are you getting the wrong output of 'dddd'?
what's the output you are getting?


Offline kenshicu

  • Occasional poster
  • *
    • Posts: 16
    • View Profile
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;


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
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 ;))


Offline bacter

  • Operator
  • Tireless poster
  • *****
    • Posts: 681
    • View Profile
Y use XPp-SP3 and have no problems using

<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
your computer has no brain - use your own !


Offline kenshicu

  • Occasional poster
  • *
    • Posts: 16
    • View Profile
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?


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
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.


Offline kenshicu

  • Occasional poster
  • *
    • Posts: 16
    • View Profile