Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Bug Reports
 PowerHome Messageboard : PowerHome Bug Reports
Subject Topic: wy would this code not work suddenly Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
mustangcoupe
Super User
Super User
Avatar

Joined: August 08 2003
Location: United States
Online Status: Offline
Posts: 308
Posted: June 11 2006 at 20:14 | IP Logged Quote mustangcoupe

OK, Im not sure what is going on here...

I have the following lines of code in a macro that was working fine unitl 6 is tonight...

Code:
string( today(), "yyyy-mm-dd") + " " + string ( relativetime ( now(), 28800))


if I debug it. It returns nothing.... (BLANK) and then i use this to send me emails at a specified time so it is sending emails every second!!! arrrrrg...

__________________
Todd Hannemann

HA newbie

   PowerHome - UPB - ELK    
Back to Top View mustangcoupe's Profile Search for other posts by mustangcoupe Visit mustangcoupe's Homepage
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: June 11 2006 at 21:01 | IP Logged Quote TonyNo

Looks like you are going over 24 hours.

ph_relativedatetime() seems to fix it...

string( ph_relativedatetime( today(), 8*60), "yyyy-mm-dd hh:mm:ss")
Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 
mustangcoupe
Super User
Super User
Avatar

Joined: August 08 2003
Location: United States
Online Status: Offline
Posts: 308
Posted: June 11 2006 at 21:16 | IP Logged Quote mustangcoupe

thanks Tony that was it.... went into tomorrow.

__________________
Todd Hannemann

HA newbie

   PowerHome - UPB - ELK    
Back to Top View mustangcoupe's Profile Search for other posts by mustangcoupe Visit mustangcoupe's Homepage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum